/* Forgot Password Page Styles */

/* Progress Indicator */
.password-reset-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 20px;
    background: #f7f7fc;
    border-radius: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active span {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.progress-step.completed span {
    background: #10b981;
    color: #fff;
}

.progress-step.completed::after {
    content: '✓';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #10b981;
    font-weight: bold;
}

.progress-step > div:last-child {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.progress-step.active > div:last-child {
    color: #4f46e5;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 24px;
}

/* Steps */
.password-reset-step {
    animation: fadeIn 0.3s ease;
}

.password-reset-step.active {
    opacity: 1;
}

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

/* OTP Input */
.otp-input {
    font-size: 24px;
    letter-spacing: 12px;
    text-align: center;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 12px !important;
}

.otp-input::placeholder {
    letter-spacing: 4px;
}

/* Success Banner */
.success-banner {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    animation: slideUp 0.4s ease;
}

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

.success-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 32px;
    margin: 0 auto 16px;
    animation: popIn 0.5s ease 0.2s backwards;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-banner__title {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 8px;
}

.success-banner__text {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

/* Messages */
.message-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    animation: slideIn 0.2s ease;
}

.message-success {
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #15803d;
    font-size: 14px;
    animation: slideIn 0.2s ease;
}

.message-warning {
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OTP digit inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 16px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-ink-900);
    background: var(--color-surface-secondary);
    border: 2px solid var(--color-purple-light-bg);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    caret-color: transparent;
}

.otp-digit:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-primary-alpha-20);
    background: var(--color-surface);
}

.otp-digit.otp-digit--error {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

.otp-digit.otp-digit--filled {
    border-color: var(--color-doc-markdown);
}

/* Button styles */
.btn--link {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.2s ease;
}

.btn--link:hover {
    color: #4338ca;
    text-decoration: underline;
}

.btn--link:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .password-reset-progress {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .progress-line {
        display: none;
    }

    .progress-step {
        width: 100%;
        margin-bottom: 8px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .success-banner__icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .success-banner__title {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .otp-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 34px;
        height: 42px;
        font-size: 15px;
        border-radius: 8px;
    }
}
