/* ================================================================
   INFINITY-DEV Analytics — Futuristic Login (Light Theme)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --fut-primary: #6366F1;
    --fut-primary-light: #818CF8;
    --fut-primary-dark: #4F46E5;
    --fut-accent: #06B6D4;
    --fut-accent-glow: rgba(6,182,212,0.4);
    --fut-success: #10B981;
    --fut-danger: #EF4444;
    --fut-bg: #F8FAFC;
    --fut-surface: #FFFFFF;
    --fut-surface-glass: rgba(255,255,255,0.75);
    --fut-text: #0F172A;
    --fut-text-secondary: #475569;
    --fut-text-muted: #94A3B8;
    --fut-border: rgba(99,102,241,0.12);
    --fut-glow: rgba(99,102,241,0.15);
    --fut-radius: 20px;
    --fut-radius-sm: 12px;
    --fut-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--fut-bg);
    color: var(--fut-text);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== CANVAS BACKGROUND ===== */
#nanoCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== AMBIENT ORBS ===== */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.ambient-orb-1 {
    width: 500px; height: 500px;
    top: -10%; left: -5%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    animation: orbDrift1 20s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 400px; height: 400px;
    bottom: -5%; right: -5%;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    animation: orbDrift2 25s ease-in-out infinite;
}

.ambient-orb-3 {
    width: 300px; height: 300px;
    top: 40%; left: 30%;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
    animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,-30px) scale(1.1); }
}

@keyframes orbDrift2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-30px,40px) scale(1.15); }
}

@keyframes orbDrift3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,20px) scale(0.95); }
}

/* ===== SCANLINES OVERLAY ===== */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(99,102,241,0.015) 2px,
        rgba(99,102,241,0.015) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* ===== LOGIN WRAPPER ===== */
.login-wrap {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== LEFT PANEL ===== */
.login-left-v3 {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeSlideUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

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

/* Brand */
.login-brand-v3 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 2.5rem;
    width: fit-content;
}

.brand-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--fut-primary), var(--fut-accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    position: relative;
    overflow: hidden;
}

.brand-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%,100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fut-text);
    letter-spacing: -0.5px;
}

/* Headline */
.login-left-v3 h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    color: var(--fut-text);
}

.login-left-v3 h1 .accent {
    background: linear-gradient(135deg, var(--fut-primary), var(--fut-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.login-left-v3 h1 .accent::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--fut-primary), var(--fut-accent));
    border-radius: 2px;
    opacity: 0.4;
}

/* Typewriter subtitle */
.typewriter-container {
    height: 1.8rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.typewriter-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fut-text-muted);
    display: inline-block;
}

.typewriter-text::after {
    content: '|';
    animation: cursorBlink 1s step-end infinite;
    color: var(--fut-accent);
    font-weight: 700;
}

@keyframes cursorBlink {
    0%,100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Features */
.login-features-v3 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-feature-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--fut-surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--fut-border);
    border-radius: var(--fut-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fut-text-secondary);
    transition: all var(--fut-transition);
    box-shadow: 0 2px 8px rgba(99,102,241,0.04);
    opacity: 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

.login-feature-v3:nth-child(1) { animation-delay: 0.5s; }
.login-feature-v3:nth-child(2) { animation-delay: 0.6s; }
.login-feature-v3:nth-child(3) { animation-delay: 0.7s; }
.login-feature-v3:nth-child(4) { animation-delay: 0.8s; }

.login-feature-v3:hover {
    transform: translateX(6px);
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 16px rgba(99,102,241,0.1);
    background: rgba(255,255,255,0.9);
}

.lf-icon-v3 {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.06));
    color: var(--fut-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.login-feature-v3:hover .lf-icon-v3 {
    transform: scale(1.1) rotate(5deg);
}

/* AI Core Visual */
.ai-core-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin-top: 2.5rem;
    align-self: flex-start;
}

.ai-core-ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(99,102,241,0.1);
    border-radius: 50%;
    animation: coreSpin 20s linear infinite;
}

.ai-core-ring::before,
.ai-core-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99,102,241,0.06);
}

.ai-core-ring::before { inset: 20px; }
.ai-core-ring::after { inset: 40px; border-style: dashed; }

.ai-core-ring-2 {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(6,182,212,0.06);
    border-radius: 50%;
    animation: coreSpin 30s linear infinite reverse;
}

.ai-core-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08));
    border: 1.5px solid rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.ai-core-center .lv-ai-text {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--fut-primary), var(--fut-accent), var(--fut-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aiGradient 3s ease-in-out infinite;
}

@keyframes aiGradient {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-core-ping {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(99,102,241,0.2);
    animation: corePing 2.5s ease-out infinite;
}

@keyframes coreSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePing {
    0% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}

.ai-core-dots {
    position: absolute;
    inset: 0;
}

.ai-core-dots span {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(99,102,241,0.3);
    border-radius: 50%;
    animation: dotFloat 3s ease-in-out infinite;
}

.ai-core-dots span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.ai-core-dots span:nth-child(2) { top: 80%; left: 10%; animation-delay: 0.5s; }
.ai-core-dots span:nth-child(3) { top: 30%; right: 15%; animation-delay: 1s; }
.ai-core-dots span:nth-child(4) { top: 70%; right: 20%; animation-delay: 1.5s; }

@keyframes dotFloat {
    0%,100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-10px) scale(1.4); opacity: 0.8; }
}

/* ===== RIGHT PANEL ===== */
.login-right-v3 {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeSlideUp 1s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
    perspective: 1200px;
}

.login-card-v3 {
    width: 100%;
    padding: 2.5rem;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: var(--fut-radius);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow:
        0 32px 64px rgba(15,23,42,0.06),
        0 0 0 1px rgba(99,102,241,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.login-card-v3::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fut-primary), var(--fut-accent), var(--fut-primary));
    background-size: 200% 100%;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.login-card-v3::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.login-card-v3 h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--fut-text);
    letter-spacing: -0.4px;
}

.login-card-sub-v3 {
    color: var(--fut-text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Form */
.form-group-v3 { margin-bottom: 1rem; }

.form-label-v3 {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fut-text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.form-input-wrap-v3 {
    position: relative;
    transition: all var(--fut-transition);
    border-radius: var(--fut-radius-sm);
}

.form-input-wrap-v3.focused {
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

.form-input-v3 {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(248,250,252,0.8);
    border: 1.5px solid rgba(99,102,241,0.1);
    border-radius: var(--fut-radius-sm);
    font-size: 0.9rem;
    color: var(--fut-text);
    transition: all var(--fut-transition);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-input-v3:focus {
    border-color: var(--fut-primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.06);
}

.form-input-v3::placeholder {
    color: #A0AAB9;
    font-size: 0.85rem;
}

.form-input-icon-v3 {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AAB9;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input-wrap-v3.focused .form-input-icon-v3 {
    color: var(--fut-primary);
}

.password-toggle-v3 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #A0AAB9;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.password-toggle-v3:hover {
    color: var(--fut-primary);
    background: rgba(99,102,241,0.06);
}

.form-row-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    margin-top: 0.25rem;
}

.form-checkbox-wrap-v3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox-v3 {
    width: 18px;
    height: 18px;
    accent-color: var(--fut-primary);
    cursor: pointer;
    border-radius: 5px;
}

.form-checkbox-label-v3 {
    font-size: 0.82rem;
    color: var(--fut-text-secondary);
    cursor: pointer;
    font-weight: 500;
}

/* Button */
.btn-login-v3 {
    width: 100%;
    height: 50px;
    border-radius: var(--fut-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    gap: 8px;
    background: linear-gradient(135deg, var(--fut-primary), var(--fut-primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fut-transition);
    box-shadow: 0 4px 20px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-login-v3::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.7s ease;
}

.btn-login-v3:hover::before {
    left: 100%;
}

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

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

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

/* Security badge */
.login-security-v3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(99,102,241,0.06);
    color: var(--fut-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.login-security-v3 svg {
    color: var(--fut-success);
}

/* Error */
.login-error-v3 {
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.08);
    border-radius: var(--fut-radius-sm);
    color: var(--fut-danger);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

/* ===== TRANSITION OVERLAY ===== */
.login-transition-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 50%, #f5f3ff 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Visual container */
.lto-visual {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Orbital rings */
.lto-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
}
.lto-orbit-1 {
    width: 64px; height: 64px;
    border-top-color: rgba(99,102,241,0.35);
    border-right-color: rgba(99,102,241,0.08);
    animation: ltoOrbitSpin1 2.2s linear infinite;
}
.lto-orbit-2 {
    width: 96px; height: 96px;
    border-bottom-color: rgba(6,182,212,0.3);
    border-left-color: rgba(6,182,212,0.06);
    animation: ltoOrbitSpin2 3.4s linear infinite reverse;
}
.lto-orbit-3 {
    width: 128px; height: 128px;
    border-top-color: rgba(139,92,246,0.2);
    border-right-color: rgba(139,92,246,0.04);
    animation: ltoOrbitSpin3 5s linear infinite;
}
@keyframes ltoOrbitSpin1 { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@keyframes ltoOrbitSpin2 { from{transform:rotate(0deg);} to{transform:rotate(-360deg);} }
@keyframes ltoOrbitSpin3 { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* Central core */
.lto-core {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08));
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(99,102,241,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fut-primary);
    box-shadow: 0 0 24px rgba(99,102,241,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    z-index: 2;
    animation: ltoCorePulse 2s ease-in-out infinite;
}
.lto-core svg { animation: ltoCoreSpin 4s linear infinite; }
@keyframes ltoCorePulse {
    0%,100%{box-shadow:0 0 20px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.4);}
    50%{box-shadow:0 0 36px rgba(99,102,241,0.28), inset 0 1px 0 rgba(255,255,255,0.4);}
}
@keyframes ltoCoreSpin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* Orbiting particles */
.lto-particles { position: absolute; inset: 0; }
.lto-particles span {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--fut-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(99,102,241,0.4);
    top: 50%; left: 50%;
    margin: -2px 0 0 -2px;
}
.lto-particles span:nth-child(1) { animation: ltoParticle1 2.5s ease-in-out infinite; }
.lto-particles span:nth-child(2) { animation: ltoParticle2 3s ease-in-out infinite 0.3s; }
.lto-particles span:nth-child(3) { animation: ltoParticle3 2.8s ease-in-out infinite 0.6s; }
.lto-particles span:nth-child(4) { animation: ltoParticle4 3.2s ease-in-out infinite 0.9s; background: var(--fut-accent); box-shadow: 0 0 6px rgba(6,182,212,0.4); }
.lto-particles span:nth-child(5) { animation: ltoParticle5 2.6s ease-in-out infinite 1.2s; }
.lto-particles span:nth-child(6) { animation: ltoParticle6 3.5s ease-in-out infinite 1.5s; background: var(--fut-accent); box-shadow: 0 0 6px rgba(6,182,212,0.4); }
@keyframes ltoParticle1 { 0%,100%{transform:rotate(0deg) translateX(52px) rotate(0deg); opacity:0;} 20%{opacity:1;} 80%{opacity:1;} 100%{transform:rotate(360deg) translateX(52px) rotate(-360deg); opacity:0;} }
@keyframes ltoParticle2 { 0%,100%{transform:rotate(60deg) translateX(66px) rotate(-60deg); opacity:0;} 15%{opacity:1;} 85%{opacity:1;} 100%{transform:rotate(420deg) translateX(66px) rotate(-420deg); opacity:0;} }
@keyframes ltoParticle3 { 0%,100%{transform:rotate(120deg) translateX(58px) rotate(-120deg); opacity:0;} 25%{opacity:1;} 75%{opacity:1;} 100%{transform:rotate(480deg) translateX(58px) rotate(-480deg); opacity:0;} }
@keyframes ltoParticle4 { 0%,100%{transform:rotate(180deg) translateX(62px) rotate(-180deg); opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100%{transform:rotate(540deg) translateX(62px) rotate(-540deg); opacity:0;} }
@keyframes ltoParticle5 { 0%,100%{transform:rotate(240deg) translateX(54px) rotate(-240deg); opacity:0;} 20%{opacity:1;} 80%{opacity:1;} 100%{transform:rotate(600deg) translateX(54px) rotate(-600deg); opacity:0;} }
@keyframes ltoParticle6 { 0%,100%{transform:rotate(300deg) translateX(68px) rotate(-300deg); opacity:0;} 15%{opacity:1;} 85%{opacity:1;} 100%{transform:rotate(660deg) translateX(68px) rotate(-660deg); opacity:0;} }

/* Typewriter text */
.lto-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, var(--fut-primary), var(--fut-primary-light), var(--fut-accent), var(--fut-primary-light), var(--fut-primary));
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aiGradient 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(99,102,241,0.2));
    min-height: 1.5em;
}
.lto-text::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: var(--fut-primary);
    animation: ltoCursorBlink 0.8s step-end infinite;
    -webkit-text-fill-color: var(--fut-primary);
}
@keyframes ltoCursorBlink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.lto-sub {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--fut-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Progress bar */
.lto-progress {
    margin-top: 1.25rem;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.lto-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(99,102,241,0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.lto-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fut-primary), var(--fut-accent), var(--fut-primary-light));
    border-radius: 999px;
    background-size: 200% 100%;
    animation: ltoProgressShimmer 1.5s linear infinite;
    box-shadow: 0 0 8px rgba(99,102,241,0.25);
    transition: width 0.15s ease-out;
}
@keyframes ltoProgressShimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
.lto-progress-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fut-primary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

/* ===== 3D CARD TILT ===== */
.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--fut-radius);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.login-card-v3:hover .tilt-glow {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .login-wrap {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    .login-left-v3 {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    .login-left-v3 h1 { font-size: 2.2rem; }
    .login-features-v3 {
        max-width: 400px;
        width: 100%;
    }
    .ai-core-visual { align-self: center; margin-top: 1.5rem; }
    .login-right-v3 { flex: 0 0 auto; width: 100%; max-width: 420px; }
}

@media (max-width: 480px) {
    .login-left-v3 h1 { font-size: 1.8rem; }
    .login-card-v3 { padding: 1.75rem; }
    .brand-text { font-size: 1rem; }
}
