/* ============================================
   FORGOT PASSWORD PAGE - DARK THEME (Matching Homepage)
   Premium Glassmorphism Design with Scroll Effects
   ============================================ */

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Auth Box - Glassmorphism */
.auth-box {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    
    /* Scroll reveal animation */
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

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

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
    
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-circle i {
    font-size: 36px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.95rem;
}

/* Auth Body */
.auth-body {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Primary Button */
.btn,
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

.btn:active,
.btn-primary:active {
    transform: translateY(0);
}

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

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

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

.alert-error, .alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-success, .alert.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.link {
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link:hover {
    color: var(--accent, #06b6d4);
}

.link::before {
    content: '←';
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-page {
        padding: 80px 16px 24px;
    }
    
    .auth-box {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .logo-circle {
        width: 64px;
        height: 64px;
    }
    
    .logo-circle i {
        font-size: 28px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* Light Theme Override */
body.light-theme {
    background: #f8fafc;
}

body.light-theme::before {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

body.light-theme::after {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

body.light-theme .auth-page::before,
body.light-theme .auth-page::after {
    opacity: 0.5;
}

body.light-theme .auth-box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body.light-theme .auth-header h1 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .auth-header p {
    color: #64748b;
}

body.light-theme .form-group label {
    color: #1e293b;
}

body.light-theme .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light-theme .form-control::placeholder {
    color: #94a3b8;
}


body.light-theme .form-footer {
    border-top-color: #e2e8f0;
}
