/* =====================================================
   Auth / Login Page Styles
   ===================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 50%, #FFE0B2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 24px;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

.login-header {
    text-align: center;
    padding: 40px 32px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateX(-50%) scaleY(-1);
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    border: 2px solid rgba(255,255,255,0.2);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.85;
}

.login-body {
    padding: 40px 32px 32px;
}

.login-body .form-group {
    margin-bottom: 20px;
}

.login-body .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-body .form-control {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--border-radius-sm);
}

.login-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.login-body .input-group {
    position: relative;
}

.login-body .input-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    z-index: 2;
}

.login-body .input-group .toggle-password:hover {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
}

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

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

.login-footer {
    text-align: center;
    padding: 16px 32px 24px;
    color: var(--text-muted);
    font-size: 12px;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: shake 0.4s ease;
}

.login-error.show {
    display: flex;
}

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

.login-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

.login-particles span:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; width: 12px; height: 12px; }
.login-particles span:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 2s; }
.login-particles span:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; width: 6px; height: 6px; }
.login-particles span:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 1s; }
.login-particles span:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; width: 10px; height: 10px; }
.login-particles span:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; background: rgba(255, 179, 0, 0.12); width: 14px; height: 14px; }
.login-particles span:nth-child(7) { left: 50%; animation-duration: 25s; animation-delay: 0s; background: rgba(255, 179, 0, 0.08); }
.login-particles span:nth-child(8) { left: 15%; animation-duration: 21s; animation-delay: 6s; background: rgba(229, 57, 53, 0.06); width: 16px; height: 16px; }

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

/* Responsive */
@media (max-width: 576px) {
    .login-container {
        padding: 16px;
    }
    
    .login-header {
        padding: 32px 24px 20px;
    }
    
    .login-body {
        padding: 32px 24px 24px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}
