/* ─── RESET & ROOT VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:    #0d0d14;
    --bg-dark:    #13131f;
    --sidebar:    #1a1a2e;
    --surface:    #1e1e30;
    --border:     rgba(255,255,255,0.07);
    --purple:     #7c3aed;
    --purple-lt:  #9b5cf6;
    --orange:     #f97316;
    --orange-lt:  #fb923c;
    --text:       #e8e8f0;
    --muted:      #6b7280;
    --muted-lt:   #9ca3af;
    --white:      #ffffff;
}

html, body { height: 100%; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

/* ─── ANIMATED BACKGROUND ─── */
.bg-canvas {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden;
}
.bg-canvas::before {
    content: '';
    position: absolute; inset: 0;
    background:
            radial-gradient(ellipse 55% 50% at 15% 50%, rgba(124,58,237,0.13) 0%, transparent 65%),
            radial-gradient(ellipse 40% 40% at 85% 20%, rgba(249,115,22,0.08) 0%, transparent 60%),
            radial-gradient(ellipse 30% 30% at 70% 80%, rgba(124,58,237,0.07) 0%, transparent 60%);
}
.bg-canvas::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatShape 12s ease-in-out infinite alternate;
}
.shape-1 { width:400px; height:400px; background:rgba(124,58,237,0.15); top:-100px; left:-100px; animation-duration:14s; }
.shape-2 { width:300px; height:300px; background:rgba(249,115,22,0.1); bottom:-80px; right:-60px; animation-duration:10s; animation-delay:-4s; }
.shape-3 { width:200px; height:200px; background:rgba(124,58,237,0.1); bottom:20%; left:10%; animation-duration:16s; animation-delay:-7s; }

@keyframes floatShape { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,20px) scale(1.08); } }

/* ─── LAYOUT ─── */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: stretch; }

/* ─── LEFT BRAND PANEL ─── */
.brand-panel {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 56px;
    animation: fadeIn 0.7s ease both 0.1s;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.logo-wrap img { height: 80px; width: auto; }

.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; padding: 20px 0 40px; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
    border-radius: 100px; padding: 5px 14px; font-size: 11px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 28px;
    width: fit-content;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow:0 0 0 0 rgba(249,115,22,0.5); } 50%{ box-shadow:0 0 0 7px rgba(249,115,22,0); } }

.hero-title { font-size: 52px; font-weight: 800; line-height: 1.08; color: var(--white); letter-spacing:-1.5px; margin-bottom:20px; }
.hero-title .accent-purple { color: var(--purple-lt); }
.hero-title .accent-orange { color: var(--orange); }

.hero-sub { font-size: 15px; color: var(--muted-lt); line-height: 1.7; max-width: 400px; margin-bottom:44px; }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 14px; padding: 16px 22px; backdrop-filter: blur(10px); transition: border-color 0.2s; }
.stat-card:hover { border-color: rgba(124,58,237,0.35); }
.stat-val { font-size: 24px; font-weight: 800; color: var(--white); letter-spacing:-0.5px; }
.stat-val .unit { font-size: 14px; color: var(--orange); font-weight:600; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; font-weight:500; }
.stat-badge { display:inline-block; font-size:10px; font-weight:600; padding:2px 7px; border-radius:100px; margin-top:6px; }
.badge-green { background: rgba(34,197,94,0.15); color:#4ade80; }
.badge-orange { background: rgba(249,115,22,0.15); color:var(--orange-lt); }

.brand-footer { font-size:12px; color: var(--muted); }
.brand-footer a { color: var(--muted-lt); text-decoration:none; }
.brand-footer a:hover { color: var(--purple-lt); }

/* ─── RIGHT FORM PANEL ─── */
.form-panel { flex:0 0 420px; background: var(--sidebar); border-left:1px solid var(--border); display:flex; flex-direction:column; justify-content:center; padding:52px 44px; position:relative; overflow:hidden; animation: slideIn 0.6s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideIn { from{opacity:0; transform:translateX(30px);} to{opacity:1; transform:translateX(0);} }

.form-panel::before { content:''; position:absolute; top:-120px; right:-120px; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%); pointer-events:none; }
.form-panel::after { content:''; position:absolute; bottom:-80px; left:-80px; width:200px; height:200px; border-radius:50%; background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%); pointer-events:none; }

.form-inner { position:relative; z-index:1; }
.form-top-logo { margin-bottom:36px; }
.form-top-logo img { height:100px; width:auto; }

.form-heading { font-size:26px; font-weight:800; color: var(--white); letter-spacing:-0.5px; margin-bottom:6px; }
.form-subtext { font-size:13px; color: var(--muted); margin-bottom:32px; line-height:1.5; }

/* ALERTS */
.alert { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:10px; font-size:13px; margin-bottom:20px; line-height:1.45; }
.alert i { margin-top:1px; flex-shrink:0; }
.alert-danger { background: rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.25); color:#fca5a5; }
.alert-success { background: rgba(124,58,237,0.1); border:1px solid rgba(124,58,237,0.3); color: var(--purple-lt); }

/* FIELDS */
.field { margin-bottom:20px; }
.field-label { display:block; font-size:12px; font-weight:600; color: var(--muted-lt); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:8px; }
.field-input-wrap { position:relative; }
.field-prefix { position:absolute; left:0; top:0; bottom:0; width:44px; display:flex; align-items:center; justify-content:center; color: var(--muted); font-size:14px; pointer-events:none; border-right:1px solid rgba(255,255,255,0.05); transition: color 0.2s; }
.field-input-wrap:focus-within .field-prefix { color: var(--purple-lt); }

.form-control { width:100%; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.09); border-radius:10px; color: var(--white); font-family:'JetBrains Mono', monospace; font-size:13px; padding:13px 14px 13px 52px; outline:none; transition:border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.form-control::placeholder { color: rgba(255,255,255,0.2); }
.form-control:focus { border-color: var(--purple); background: rgba(124,58,237,0.07); box-shadow:0 0 0 3px rgba(124,58,237,0.15); }

/* BUTTONS */
.btn-login { width:100%; margin-top:10px; padding:14px 20px; border:none; border-radius:10px;     background: linear-gradient(135deg, #7c3aeda3 0%, #6d28d9c4 100%);; color:#fff; font-family:'Plus Jakarta Sans', sans-serif; font-size:14px; font-weight:700; letter-spacing:0.3px; cursor:pointer; position:relative; overflow:hidden; transition:transform 0.15s, box-shadow 0.2s; box-shadow:0 4px 20px rgba(124,58,237,0.4); }
.btn-login:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(124,58,237,0.55); }
.btn-login:active { transform:translateY(0); }
.btn-arrow { display:inline-block; margin-left:6px; transition:transform 0.2s; }
.btn-login:hover .btn-arrow { transform:translateX(4px); }

/* DIVIDER */
.or-divider { display:flex; align-items:center; gap:12px; margin:24px 0; color: var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:1px; }
.or-divider::before, .or-divider::after { content:''; flex:1; height:1px; background: var(--border); }

/* SECURITY BADGES */
.security-row { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; }
.sec-badge { display:flex; align-items:center; gap:5px; font-size:11px; color: var(--muted); font-weight:500; }
.sec-badge i { font-size:12px; }
.sec-badge.green i { color:#4ade80; }
.sec-badge.purple i { color: var(--purple-lt); }
.sec-badge.orange i { color: var(--orange-lt); }

.signup-link { margin-top:24px; text-align:center; font-size:13px; color: var(--muted); }
.signup-link a { color: var(--orange-lt); font-weight:600; text-decoration:none; transition:color 0.2s; }
.signup-link a:hover { color: var(--orange); }

/* RESPONSIVE */
@media (max-width: 768px) {
    body { overflow:auto; }
    .page { flex-direction:column; min-height:100vh; }
    .brand-panel { display:none; }
    .form-panel { flex:1; border-left:none; padding:44px 28px; }
}

.form-control:focus {
    color: white;
}