/* Status: THIN (VES*) — cinematic SkyNet login; Progress ≠ promote. */
:root {
  --sky-bg: #05070c;
  --sky-surface: #0e1420;
  --sky-ink: #eef2f8;
  --sky-muted: #8b96a8;
  --sky-accent: #c9a227;
  --sky-signal: #3b82f6;
  --sky-signal-2: #60a5fa;
  --sky-live: #3dd68c;
  --sky-thin: #8fa3bf;
  --sky-danger: #e05c5c;
  --sky-line: rgba(238, 242, 248, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --sky-motion: 160ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ves-login {
  font-family: var(--font-body);
  color: var(--sky-ink);
  background: #02040a;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  min-height: 100vh;
}

.brand-plane {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 90% 70% at 20% 110%, rgba(59, 130, 246, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(165deg, #03050a 0%, #071018 45%, #0a1528 100%);
}
.brand-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 82%, rgba(96, 165, 250, 0.35), transparent 28%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(255,255,255,0.015) 48px 49px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255,255,255,0.015) 48px 49px);
  pointer-events: none;
  z-index: -1;
}
.brand-plane::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 70%;
  left: -20%;
  bottom: -28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.25), transparent 60%);
  box-shadow: 0 0 120px 40px rgba(59, 130, 246, 0.15);
  animation: horizon-glow 8s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes horizon-glow {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-8px); }
}

.hud-line {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-muted);
}
.brand-core {
  text-align: center;
  margin: auto 0;
  animation: rise var(--sky-motion) ease-out;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-core .mark {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.45));
}
.brand-core h1 {
  margin: 1rem 0 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  letter-spacing: 0.22em;
}
.brand-core .sub {
  margin: 0;
  color: var(--sky-signal-2);
  letter-spacing: 0.35em;
  font-size: 0.95rem;
}
.brand-core .tag {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sky-line);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--sky-ink);
}
.brand-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.brand-foot img { width: min(200px, 55%); height: auto; opacity: 0.92; }
.brand-foot p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--sky-signal-2);
}

.credential-plane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #070b12, #0a101a);
  border-left: 1px solid color-mix(in srgb, var(--sky-signal) 45%, transparent);
  box-shadow: inset 8px 0 40px rgba(59, 130, 246, 0.08);
}
.cred-card {
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem 1.35rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sky-surface) 88%, #000);
  border: 1px solid var(--sky-line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.cred-top { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--sky-muted);
  border: 1px solid var(--sky-line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}
.status-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky-thin);
  box-shadow: 0 0 8px var(--sky-thin);
}
.cred-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}
.cred-lede { margin: 0.35rem 0 1.25rem; color: var(--sky-muted); }
.cred-lede .accent { color: var(--sky-signal-2); }
label { display: block; font-size: 0.8rem; color: var(--sky-muted); margin: 0.75rem 0 0.35rem; }
.field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--sky-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0 0.75rem;
}
.field:focus-within { border-color: color-mix(in srgb, var(--sky-signal) 70%, var(--sky-line)); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
.field-ico { color: var(--sky-muted); font-size: 0.75rem; }
.field input, .totp-row input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--sky-ink);
  font: inherit;
  padding: 0.85rem 0;
  outline: none;
  width: 100%;
}
.totp-row input {
  border: 1px solid var(--sky-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 0.75rem;
}
.eye, .linkish {
  border: 0; background: transparent; color: var(--sky-signal-2);
  font: inherit; font-size: 0.78rem; cursor: pointer;
}
.row-between {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0.85rem 0 0.5rem; font-size: 0.82rem; color: var(--sky-muted);
}
.remember { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; margin: 0; }
.remember input { accent-color: var(--sky-signal); }
.error { min-height: 1.2rem; color: var(--sky-danger); font-size: 0.85rem; margin: 0.35rem 0; }
.primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  transition: transform var(--sky-motion) ease, filter var(--sky-motion) ease;
}
.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.or {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center;
  margin: 1rem 0 0.75rem; color: var(--sky-muted); font-size: 0.75rem;
}
.or::before, .or::after { content: ""; height: 1px; background: var(--sky-line); }
.ghost {
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid var(--sky-line);
  border-radius: 10px;
  background: transparent;
  color: var(--sky-ink);
  font: inherit;
  padding: 0.8rem 1rem;
  cursor: pointer;
  text-align: left;
}
.ghost:hover { border-color: color-mix(in srgb, var(--sky-signal) 50%, var(--sky-line)); }
.continuity, .terms, .footer {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--sky-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-plane {
    min-height: 38vh;
    padding: 1.25rem 1.25rem 2rem;
    justify-content: flex-end;
  }
  .brand-core h1 { letter-spacing: 0.16em; font-size: 2.4rem; }
  .brand-foot { display: none; }
  .credential-plane {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--sky-signal) 35%, transparent);
    align-items: flex-start;
    padding-top: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-plane::after, .brand-core { animation: none; }
}
