:root {
  --bg:      #020c15;
  --bg2:     #041825;
  --panel:   #061e30;
  --border:  #0d4a6e;
  --border2: #0a3550;
  --accent:  #00d4ff;
  --accent2: #00ff9d;
  --accent3: #ff4d00;
  --warn:    #ffcc00;
  --text:    #e2f4fc;
  --muted:   #7ab8d0;
  --dim:     #3d6e85;
  --glow:    0 0 20px #00d4ff50;
  --glow2:   0 0 20px #00ff9d40;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════
   BACKGROUND LAYERS
══════════════════════════════════════════ */

/* scanline overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.065) 3px, rgba(0,0,0,0.065) 4px
  );
}

/* animated grid */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridDrift 25s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}

/* glow orbs */
.orb1 {
  position: fixed; top: -12%; left: -8%;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: floatA 9s ease-in-out infinite;
}
.orb2 {
  position: fixed; bottom: -18%; right: -10%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,157,0.05) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: floatB 11s ease-in-out infinite;
}
.orb3 {
  position: fixed; top: 40%; left: 48%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.03) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: floatA 14s ease-in-out infinite reverse;
}
@keyframes floatA { 0%,100% { transform: translateY(0) scale(1); }   50% { transform: translateY(-32px) scale(1.03); } }
@keyframes floatB { 0%,100% { transform: translateY(0) scale(1); }   50% { transform: translateY(28px) scale(0.97); } }

/* corner brackets */
.corner {
  position: fixed; width: 130px; height: 130px;
  pointer-events: none; z-index: 1;
}
.c-tl { top: 0; left: 0;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
  opacity: 0; animation: cornerFadeIn .8s .3s forwards; }
.c-tr { top: 0; right: 0;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  opacity: 0; animation: cornerFadeIn .8s .5s forwards; }
.c-bl { bottom: 0; left: 0;
  border-bottom: 2px solid var(--accent2); border-left: 2px solid var(--accent2);
  opacity: 0; animation: cornerFadeIn .8s .7s forwards; }
.c-br { bottom: 0; right: 0;
  border-bottom: 2px solid var(--accent2); border-right: 2px solid var(--accent2);
  opacity: 0; animation: cornerFadeIn .8s .9s forwards; }
@keyframes cornerFadeIn { to { opacity: .35; } }

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes blink      { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes logoPulse  { 0%,100% { box-shadow: 0 0 8px #00d4ff44; } 50% { box-shadow: 0 0 24px #00d4ffaa, 0 0 50px #00d4ff33; } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes slideUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes shimmer    { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes radarSpin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes radarPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes dotPulse   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .2; transform: scale(.5); } }
@keyframes tickScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
nav {
  position: relative; z-index: 200; height: 64px; flex-shrink: 0;
  background: rgba(2,10,20,0.97);
  border-bottom: 1px solid rgba(13,74,110,0.6);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.6rem;
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo-box {
  width: 40px; height: 40px;
  border: 2px solid var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 900;
  color: var(--accent);
  animation: logoPulse 3s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.logo-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.08), transparent);
}

.logo-text {
  font-family: 'Orbitron', sans-serif; font-size: 19px; font-weight: 700;
  color: var(--accent); letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0,212,255,.6);
}
.logo-sub {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 2.5px; margin-top: 3px;
}

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-back {
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  letter-spacing: 2px; color: var(--dim); text-decoration: none;
  text-transform: uppercase; transition: color .25s;
  display: flex; align-items: center; gap: 6px;
}
.nav-back:hover { color: var(--accent); }

.nav-badge {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: var(--accent2); border: 1px solid rgba(0,255,157,.4);
  background: rgba(0,255,157,.05);
  padding: 5px 13px; border-radius: 2px; letter-spacing: 2px;
  animation: blink 2.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   PAGE GRID
══════════════════════════════════════════ */
.page {
  flex: 1; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  min-height: 0;
}

/* ══════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════ */
.left-panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 72px;
  border-right: 1px solid rgba(13,74,110,.4);
  overflow: hidden;
  min-height: 0;
}

/* gradient wash */
.left-panel::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(145deg, rgba(0,212,255,.055) 0%, transparent 55%),
    linear-gradient(to bottom, transparent 60%, rgba(0,255,157,.025) 100%);
}

/* vertical accent line */
.left-panel::after {
  content: '';
  position: absolute; top: 10%; bottom: 10%; left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: .25;
}

/* radar rings */
.radar-wrap {
  position: absolute; bottom: -130px; left: -130px;
  width: 500px; height: 500px;
  pointer-events: none;
}
.radar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,212,255,.08);
  animation: radarPulse 5s ease-in-out infinite;
}
.radar-ring:nth-child(2) { inset: 50px; border-color: rgba(0,212,255,.06); animation-delay: .6s; }
.radar-ring:nth-child(3) { inset: 100px; border-color: rgba(0,212,255,.05); animation-delay: 1.2s; }
.radar-ring:nth-child(4) { inset: 150px; border-color: rgba(0,255,157,.04); animation-delay: 1.8s; }
/* radar sweep */
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,212,255,.12) 0deg, transparent 60deg);
  animation: radarSpin 5s linear infinite;
  opacity: .5;
}

/* badge */
.lp-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  letter-spacing: 3px; color: var(--accent); text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0; animation: slideRight .7s .2s forwards;
}
.lp-badge .pd {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  animation: dotPulse 1.3s ease-in-out infinite;
  flex-shrink: 0;
}

/* headline */
.lp-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 900; line-height: 1.06; letter-spacing: 3px;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 0 50px rgba(0,212,255,.18);
  margin-bottom: 20px;
  opacity: 0; animation: slideRight .7s .35s forwards;
}
.lp-title em {
  color: var(--accent); font-style: normal;
  text-shadow: 0 0 30px rgba(0,212,255,.7);
}

/* divider */
.lp-div {
  width: 70px; height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin-bottom: 24px;
  opacity: 0; animation: slideRight .6s .5s forwards;
}

/* description */
.lp-desc {
  font-size: 16px; color: var(--muted); line-height: 1.85;
  max-width: 390px; margin-bottom: 36px;
  opacity: 0; animation: slideRight .7s .55s forwards;
}

/* feature list */
.feat-list {
  list-style: none; margin-bottom: 36px;
  opacity: 0; animation: slideRight .7s .65s forwards;
}
.feat-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid rgba(13,74,110,.28);
}
.feat-list li:last-child { border-bottom: none; }
.feat-icon {
  width: 36px; height: 36px; border-radius: 6px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  transition: all .3s;
}
.feat-list li:hover .feat-icon {
  background: rgba(0,212,255,.15);
  box-shadow: 0 0 14px rgba(0,212,255,.2);
}
.feat-text strong {
  display: block; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 2px;
}
.feat-text span { font-size: 14px; color: var(--muted); }

/* security chips */
.sec-chips {
  display: flex; flex-wrap: wrap; gap: 9px;
  opacity: 0; animation: slideRight .7s .8s forwards;
}
.chip {
  font-family: 'Share Tech Mono', monospace; font-size: 11px; letter-spacing: 1px;
  color: var(--dim); border: 1px solid rgba(13,74,110,.6);
  background: rgba(6,30,48,.5);
  padding: 6px 13px; border-radius: 2px;
  display: flex; align-items: center; gap: 7px;
  transition: all .25s;
}
.chip:hover {
  color: var(--accent2); border-color: rgba(0,255,157,.3);
  background: rgba(0,255,157,.04);
}
.chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 6px var(--accent2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RIGHT PANEL — FORM
══════════════════════════════════════════ */
.right-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 64px;
  background: rgba(4,20,35,.45);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* subtle inner glow */
.right-panel::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.04), transparent 70%);
  pointer-events: none;
}

/* glass card */
.login-card {
  width: 100%; max-width: 430px;
  background: rgba(6,24,38,.75);
  border: 1px solid rgba(13,74,110,.5);
  border-radius: 10px;
  padding: 42px 40px 36px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(0,0,0,.5),
    0 0 0 1px rgba(0,212,255,.06) inset,
    0 1px 0 rgba(0,212,255,.12) inset;
  opacity: 0; animation: slideUp .65s .1s forwards;
  position: relative; overflow: hidden;
}

/* card top glow line */
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: .5;
}

/* card corner accent */
.login-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background:
    linear-gradient(225deg, rgba(0,212,255,.08) 0%, transparent 60%);
  border-radius: 0 10px 0 0;
}

/* card header */
.card-header { margin-bottom: 32px; }

.card-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  letter-spacing: 3.5px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 14px;
  opacity: .8;
}
.card-eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: var(--accent); opacity: .6;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 700; letter-spacing: 2px;
  color: #fff; margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0,212,255,.2);
}

.card-sub {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}

/* ── FORM FIELDS ── */
.field { margin-bottom: 22px; }

.field-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  letter-spacing: 2.5px; color: var(--dim); text-transform: uppercase;
  margin-bottom: 9px; transition: color .2s;
}
.field-label a {
  font-size: 11px; color: var(--accent); text-decoration: none;
  letter-spacing: 1px; opacity: .8; transition: opacity .2s;
}
.field-label a:hover { opacity: 1; }

.input-wrap { position: relative; }

.input-ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 16px; pointer-events: none; opacity: .45;
  transition: opacity .25s;
}

.field input {
  width: 100%;
  background: rgba(2,10,20,.8);
  border: 1px solid rgba(13,74,110,.7);
  border-radius: 5px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 500;
  padding: 13px 46px 13px 48px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  letter-spacing: .3px;
}
.field input::placeholder { color: rgba(61,110,133,.8); font-size: 15px; font-weight: 400; }
.field input:focus {
  border-color: var(--accent);
  background: rgba(2,14,24,.9);
  box-shadow: 0 0 0 3px rgba(0,212,255,.08), 0 0 18px rgba(0,212,255,.12);
}
.field input:focus ~ .input-ico { opacity: .9; }
.field:focus-within .field-label { color: var(--accent); }

/* error state */
.field input.err-field {
  border-color: var(--accent3) !important;
  box-shadow: 0 0 0 3px rgba(255,77,0,.1), 0 0 14px rgba(255,77,0,.15) !important;
}

/* show/hide password */
.eye-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--dim); cursor: pointer;
  font-size: 16px; padding: 0; line-height: 1;
  transition: color .2s, transform .2s;
}
.eye-btn:hover { color: var(--accent); transform: translateY(-50%) scale(1.15); }

/* ── REMEMBER ROW ── */
.remember-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 8px;
}
.remember-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 14px; color: var(--muted); user-select: none;
  transition: color .2s;
}
.remember-label:hover { color: var(--text); }
.remember-label input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer;
}
.session-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: var(--dim); letter-spacing: 1px;
  background: rgba(13,74,110,.2); border: 1px solid rgba(13,74,110,.4);
  padding: 3px 10px; border-radius: 2px;
}

/* ── SUBMIT BUTTON ── */
.sub-btn {
  width: 100%; position: relative; overflow: hidden;
  font-family: 'Orbitron', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  border: none; padding: 16px;
  border-radius: 5px; cursor: pointer;
  transition: all .3s;
  box-shadow: 0 0 28px rgba(0,212,255,.4), 0 4px 20px rgba(0,0,0,.4);
}
/* shimmer sweep */
.sub-btn::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s;
}
/* bottom glow bar */
.sub-btn::after {
  content: '';
  position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
  background: rgba(255,255,255,.4);
}
.sub-btn:hover {
  background: #05dfff;
  box-shadow: 0 0 50px rgba(0,212,255,.6), 0 6px 30px rgba(0,0,0,.5);
  transform: translateY(-2px);
}
.sub-btn:hover::before { transform: translateX(100%); }
.sub-btn:active { transform: translateY(0); }
.sub-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── STATUS MESSAGE ── */
#login-msg {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px; letter-spacing: 1.5px;
  min-height: 22px; margin-top: 16px;
  transition: all .3s; line-height: 1.6;
}
#login-msg.ok  { color: var(--accent2); }
#login-msg.err { color: var(--accent3); }
#login-msg.ld  { color: var(--warn); }

/* ── FOOTER ── */
.form-footer {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(13,74,110,.35);
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(61,110,133,.8); line-height: 1.9;
}
.form-footer a {
  color: var(--muted); text-decoration: none;
  transition: color .2s; border-bottom: 1px solid transparent;
}
.form-footer a:hover { color: var(--accent); border-bottom-color: rgba(0,212,255,.3); }
.form-footer .warn-text {
  color: rgba(61,110,133,.7); font-size: 10px; margin-top: 6px;
}

/* ══════════════════════════════════════════
   BOTTOM TICKER
══════════════════════════════════════════ */
.bottom-bar {
  position: relative; z-index: 200; height: 36px; flex-shrink: 0;
  background: rgba(2,10,20,.97);
  border-top: 1px solid rgba(13,74,110,.5);
  display: flex; align-items: center; overflow: hidden;
}
.bar-lbl {
  flex-shrink: 0;
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  letter-spacing: 2px; color: var(--accent);
  background: rgba(0,212,255,.06);
  padding: 0 18px; height: 100%;
  display: flex; align-items: center;
  border-right: 1px solid rgba(13,74,110,.5);
}
.bar-track {
  display: flex; white-space: nowrap;
  animation: tickScroll 36s linear infinite;
  font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--dim);
}
.b-item { padding: 0 44px; }
.b-item b { color: var(--accent2); }

/* ══════════════════════════════════════════
   LOADING OVERLAY
══════════════════════════════════════════ */
.load-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(2,10,20,.96);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.load-overlay.show { opacity: 1; pointer-events: all; }

.load-ring-wrap { position: relative; width: 70px; height: 70px; }
.load-ring {
  width: 70px; height: 70px; border-radius: 50%;
  border: 2px solid rgba(13,74,110,.5);
  border-top-color: var(--accent);
  animation: spin .75s linear infinite;
}
.load-ring-inner {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 2px solid rgba(13,74,110,.3);
  border-bottom-color: var(--accent2);
  animation: spin 1.5s linear infinite reverse;
}

.load-txt {
  font-family: 'Orbitron', sans-serif; font-size: 14px;
  font-weight: 700; letter-spacing: 4px;
  color: var(--accent); text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,212,255,.6);
}
.load-sub {
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  color: var(--muted); letter-spacing: 2px;
  transition: opacity .3s;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .right-panel { padding: 36px 20px; min-height: calc(100vh - 100px); }
  nav { padding: 0 1.2rem; }
  body { overflow-y: auto; }
}
@media (max-width: 420px) {
  .login-card { padding: 32px 22px 28px; }
  .card-title { font-size: 20px; }
}