/* 忘记密码页 */

body.forgot-password-page {
    background: var(--color-accent, #0d9488);
    min-height: 100vh;
}

body.forgot-password-page .navbar {
    background: rgba(255, 255, 255, 0.95);
}

body.forgot-password-page .main-content {
    margin-left: 0 !important;
    padding: 24px 16px 48px !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
}

.forgot-wrap {
    width: 100%;
    max-width: 480px;
}

.forgot-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 36px 32px 28px;
    animation: fadeIn 0.5s ease-out;
}

.forgot-card .login-header {
    text-align: center;
    margin-bottom: 24px;
}

.forgot-card .login-header h2 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 8px;
}

.forgot-card .login-header p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 28px;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 500;
}

.step-indicator .step.active {
    color: #5a67d8;
    font-weight: 600;
}

.step-indicator .step.completed {
    color: #38a169;
}

.step-indicator .step.skipped {
    color: #cbd5e0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #edf2f7;
    color: #718096;
    margin-right: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.step.active .step-number {
    background: var(--color-accent, #0d9488);
    color: #fff;
}

.step.completed .step-number {
    background: #48bb78;
    color: #fff;
}

.step-separator {
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 2px;
}

.step.completed + .step-separator,
.step-separator.done {
    background: #9ae6b4;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-status {
    text-align: center;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.step-status.info {
    background: #ebf8ff;
    color: #2c5282;
}

.step-status.success {
    background: #f0fff4;
    color: #276749;
}

.step-status.error {
    background: #fff5f5;
    color: #c53030;
}

.step-status.loading {
    background: #f7fafc;
    color: #4a5568;
}

.email-masked {
    font-weight: 600;
    color: #5a67d8;
}

.verification-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.verification-input input {
    width: 44px;
    height: 48px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.verification-input input:focus {
    border-color: var(--color-accent, #0d9488);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.countdown-text {
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 16px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--color-accent, #0d9488);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0;
}

.resend-btn:disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    text-decoration: none;
}

.forgot-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.forgot-actions .login-btn {
    width: 100%;
}

.forgot-actions .btn-secondary-link {
    background: #fff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
}

.forgot-actions .btn-secondary-link:hover {
    border-color: #cbd5e0;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.back-to-login a {
    color: var(--color-accent, #0d9488);
    text-decoration: none;
    font-size: 0.9rem;
}

.success-message {
    text-align: center;
    padding: 12px 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .forgot-card {
        padding: 28px 20px 22px;
    }

    .step-indicator .step span:not(.step-number) {
        display: none;
    }

    .step-separator {
        width: 12px;
    }
}
