/* ============================================
   ForgotPassword.cshtml - FORGOT PASSWORD PAGE STYLES
   ============================================ */

/* Note: CSS variables are inherited from the global styles.css file */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    line-height: 1.6;
}

.forgot-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.forgot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(227, 193, 110, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.step-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

.progress-bar {
    background: var(--border);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    background: var(--gradient);
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 193, 110, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-control.success {
    border-color: var(--accent);
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 193, 110, 0.1);
}

.otp-input.filled {
    background: rgba(227, 193, 110, 0.1);
    border-color: var(--primary);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.875rem;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak {
    background: var(--danger);
    width: 25%;
}

.strength-fair {
    background: var(--warning);
    width: 50%;
}

.strength-good {
    background: var(--accent);
    width: 75%;
}

.strength-strong {
    background: var(--primary);
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray);
}

.error-message,
.success-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message {
    color: var(--danger);
}

.success-message {
    color: var(--accent);
}

.btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--light);
    color: var(--gray);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.back-login {
    text-align: center;
    margin-top: 1.5rem;
}

.back-login a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-login a:hover {
    color: var(--primary-dark);
    transform: translateX(-2px);
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home:hover {
    transform: translateX(-4px);
}

.info-box {
    background: rgba(31, 79, 91, 0.1);
    border: 1px solid rgba(31, 79, 91, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--accent);
}

.info-box i {
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.resend-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.resend-timer {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.resend-btn:hover {
    color: var(--primary-dark);
}

.resend-btn:disabled {
    color: var(--gray);
    cursor: not-allowed;
    text-decoration: none;
}

.email-display {
    background: rgba(227, 193, 110, 0.1);
    border: 1px solid rgba(227, 193, 110, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .forgot-container {
        padding: 2rem 1.5rem;
    }

    .back-home {
        top: 1rem;
        left: 1rem;
    }

    .otp-inputs {
        gap: 0.25rem;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* Animation classes */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes success-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.success-bounce {
    animation: success-bounce 0.6s ease;
}