/* Password Reset Form Styles - Modern UI with Strength Meter */
.nd-pro-label {
    margin-bottom: 10px;
    display: block;
    font-weight: 400;
}

.nd-pro-label.nd-pro-required-label::after {
    content: " *";
    color: red;
}

.nd-pro-password-reset-form input[type="text"]:focus,
.nd-pro-password-reset-form input[type="password"]:focus,
.nd-pro-password-reset-form input[type="email"]:focus,
.nd-pro-password-reset-form input[type="number"]:focus {
    border: 1px solid green;
    outline: none !important;
}

/* Modern Password Strength Meter */
.nd-pro-password-strength {
    margin: 16px 0 12px;
}

.nd-pro-strength-meter {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.nd-pro-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nd-pro-strength-bar.weak {
    background: #ef4444;
}

.nd-pro-strength-bar.medium {
    background: #f59e0b;
}

.nd-pro-strength-bar.strong {
    background: #3b82f6;
}

.nd-pro-strength-bar.very-strong {
    background: #10b981;
}

.nd-pro-strength-text {
    font-size: 13px;
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Password Requirements - Modern Pill Style */
.nd-pro-password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin: 12px 0 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.nd-pro-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.nd-pro-requirement.met {
    color: #10b981;
}

.nd-pro-req-icon {
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.nd-pro-requirement.met .nd-pro-req-icon {
    color: #10b981;
}

/* Password Match - Modern Style */
.nd-pro-password-match {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 8px 0 16px;
    border-radius: 8px;
    font-size: 13px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nd-pro-password-match.met {
    background: #ecfdf5;
    color: #10b981;
    border-color: #a7f3d0;
}

.nd-pro-password-match.mismatch {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

.nd-pro-match-icon {
    font-size: 14px;
    font-weight: 700;
}

.nd-pro-password-match .nd-pro-match-text {
    color: inherit;
}

.nd-pro-password-reset-form #match-status {
    font-size: 90%;
    margin-top: 3px;
}

/* Legacy rules - keep for backward compatibility */
.nd-pro-password-reset-form .nd-pro-rules {
    margin: 10px 0;
    font-size: 90%;
}

.nd-pro-password-reset-form .nd-pro-rules .rule-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.nd-pro-password-reset-form .rule-check {
    font-weight: bold;
    margin-right: 5px;
}

.nd-pro-password-reset-form .rule-text {
    color: #666;
}

.nd-pro-password-reset-form .nd-pro-input-wrap {
    position: relative;
    margin-bottom: 15px;
}

.nd-pro-password-reset-form .nd-pro-toggle-pwd {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.nd-pro-password-reset-form .nd-pro-captcha-row {
    margin-bottom: 10px;
}

.nd-pro-password-reset-form #nd_pro_math_input {
    max-width: 100%;
}

.nd-pro-password-reset-form #nd-pro-math-captcha-msg {
    font-size: 0.9em;
    margin: 5px 0;
}

.nd-pro-password-reset-form .g-recaptcha {
    margin-bottom: 10px;
}

.nd-pro-password-reset-form .nd-pro-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nd-pro-password-reset-form .nd-pro-password-expired-notice {
    background: #f8f9fa;
    border-left: 4px solid #d63638;
    padding: 15px;
    margin-bottom: 20px;
}

/* Password reset error styling */    
.nd-pro-password-reset-form .nd-pro-reset-error {
    background: #f8ebea;
    border-left: 4px solid #d63638;
    color: #d63638;
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.nd-pro-password-reset-form .nd-pro-reset-error:before {
    content: "\f534";
    font-family: dashicons;
    margin-right: 10px;
    font-size: 18px;
}

.nd-pro-password-reset-form .reset-pass-button-container {
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .nd-pro-password-requirements {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
    }
}