/* ============================================
   AUTH PAGES STYLES (Login, Register, Reset)
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Animated background shapes */
.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226,183,20,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: floatBg 15s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(116,185,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: floatBg 20s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Floating particles */
.auth-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(226,183,20,0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15,52,96,0.3);
}

.auth-card .auth-logo .logo-icon i {
    font-size: 28px;
    color: #e2b714;
}

.auth-card .auth-logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.auth-card .auth-logo p {
    font-size: 14px;
    color: #636e72;
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
    display: block;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 16px;
    z-index: 1;
}

.auth-form .input-group input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2d3436;
    transition: all 0.3s ease;
    outline: none;
    background: #f8f9fa;
}

.auth-form .input-group input:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 4px rgba(15,52,96,0.1);
    background: white;
}

.auth-form .input-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b2bec3;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.2s;
}

.auth-form .input-group .toggle-password:hover {
    color: #0f3460;
}

.auth-form .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-form .form-options .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #636e72;
}

.auth-form .form-options .remember input {
    width: 16px;
    height: 16px;
    accent-color: #0f3460;
}

.auth-form .form-options .forgot-link {
    color: #0f3460;
    font-weight: 600;
}

.auth-form .form-options .forgot-link:hover {
    color: #e2b714;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(226,183,20,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15,52,96,0.4);
}

.auth-btn:hover::before {
    opacity: 1;
}

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

.auth-btn .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn.loading .btn-spinner {
    display: block;
    position: absolute;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #636e72;
}

.auth-footer a {
    color: #0f3460;
    font-weight: 600;
}

/* Auth Error */
.auth-error {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.auth-success {
    background: rgba(0,184,148,0.1);
    color: #00b894;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .auth-card .auth-logo h1 {
        font-size: 20px;
    }
}

/* Dark mode auth */
[data-theme="dark"] .auth-card {
    background: rgba(30, 30, 30, 0.95);
}

[data-theme="dark"] .auth-card .auth-logo h1 {
    color: #e0e0e0;
}

[data-theme="dark"] .auth-card .auth-logo p {
    color: #a0a0a0;
}

[data-theme="dark"] .auth-form .input-group input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .auth-form .form-group label {
    color: #e0e0e0;
}
