/* ═══════════════════════════════════════════════════════════════════════
   WhatsApp Hub — Login Page Styles
   ═══════════════════════════════════════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.login-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
    z-index: 0;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 20%, rgba(99,102,241,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.1) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating particles */
.login-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float linear infinite;
}

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

/* Left panel — branding */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    z-index: 2;
    color: white;
}

.login-brand {
    text-align: center;
    max-width: 440px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.login-logo svg { width: 36px; height: 36px; color: white; }

.login-brand h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.login-brand p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.6;
    font-weight: 400;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.login-feature:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }

.login-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg { width: 20px; height: 20px; color: #a5b4fc; }

.login-feature-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Right panel — form */
.login-right {
    width: 480px;
    min-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 40px;
}

.login-card {
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    animation: cardSlideUp 0.5s ease;
}

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

.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-card-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

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

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

.login-form .form-control {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    border: 1.5px solid var(--border);
    background: #fafbfc;
}

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

.login-input-icon {
    position: relative;
}

.login-input-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.login-input-icon .form-control { padding-left: 42px; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.password-toggle:hover { color: var(--primary); }
.password-toggle svg { width: 18px; height: 18px; }

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
    margin-top: 8px;
}

.login-btn:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.4);
    transform: translateY(-2px);
}

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

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

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .login-page { flex-direction: column; }
    .login-left { padding: 40px 20px; min-height: auto; }
    .login-right { width: 100%; min-width: auto; padding: 0 20px 40px; }
    .login-features { display: none; }
    .login-brand h1 { font-size: 28px; }
}

@media (max-width: 480px) {
    .login-card { padding: 32px 24px; }
}
