/* ========================================
   Forgot Password Page Styles
   ======================================== */

.forgot-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out;
}

.forgot-header {
    margin-bottom: 1rem;
}

.forgot-back-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    padding: 0.4rem 0;
}

.forgot-back-link:hover {
    color: #fff;
}

.forgot-card {
    background: #fff;
    border-radius: var(--login-radius, 16px);
    padding: 2.5rem 2rem;
    box-shadow: var(--login-shadow, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    text-align: center;
}

/* Icon */
.forgot-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--login-accent, #6366f1) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.forgot-icon .fa-check-circle {
    color: #fff;
    font-size: 1.8rem;
}

/* Title */
.forgot-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--login-text-primary, #0f172a);
    margin-bottom: 0.3rem;
}

.forgot-subtitle {
    font-size: 0.875rem;
    color: var(--login-text-secondary, #64748b);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.forgot-subtitle strong {
    color: var(--login-accent, #6366f1);
}

/* Form overrides for forgot page */
.forgot-card .login-form {
    text-align: left;
}

.forgot-card .login-form .btn-login {
    margin-top: 0.5rem;
}

/* Password Strength Bar */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-strength.visible {
    opacity: 1;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.fair { background: #f59e0b; }
.strength-bar.good { background: #3b82f6; }
.strength-bar.strong { background: #10b981; }

.strength-text {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

.strength-text.weak { color: #ef4444; }
.strength-text.fair { color: #f59e0b; }
.strength-text.good { color: #3b82f6; }
.strength-text.strong { color: #10b981; }

/* Done State */
.forgot-done {
    margin-top: 0.5rem;
}

.forgot-done .btn-login {
    display: inline-flex;
    text-decoration: none;
}

/* Contact Section */
.forgot-contact {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.forgot-contact-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--login-text-secondary, #64748b);
    margin-bottom: 0.3rem;
}

.forgot-contact-info {
    font-size: 0.75rem;
    color: var(--login-text-muted, #94a3b8);
    margin: 0;
}

.forgot-contact-info i {
    margin-right: 2px;
}

/* Password match indicator */
.match-indicator {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
}

.match-indicator.show {
    display: block;
}

.match-indicator.match {
    color: #10b981;
}

.match-indicator.mismatch {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
    .forgot-card {
        padding: 2rem 1.25rem;
    }

    .forgot-contact-info span.mx-2 {
        display: none;
    }

    .forgot-contact-info {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* ---- Email Sent Step ---- */
.forgot-email-sent {
    text-align: center;
}

.email-sent-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    border: 1.5px solid #c7d2fe;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: left;
}

.email-sent-icon {
    text-align: center;
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.email-sent-box p {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 0.5rem;
}

.email-sent-hint {
    font-size: 0.78rem !important;
    color: #6b7280 !important;
    margin: 0.25rem 0 !important;
}

.email-sent-hint i {
    color: #6366f1;
}
