/* NN Conecta VPN — console de operações de rede.
   Direção: industrial/utilitário. Fundo verde-quase-preto, acento âmbar (LED de equipamento),
   grade de esquema técnico ao fundo, IBM Plex Sans / Condensed / Mono. */

@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0f0d;
  --surface: #101714;
  --surface-2: #151e1a;
  --surface-3: #1b2621;
  --border: rgba(214, 235, 224, 0.08);
  --border-strong: rgba(214, 235, 224, 0.16);
  --text: #e4ebe6;
  --muted: #8d9c94;
  --faint: #56645d;
  --accent: #f2a03d;
  --accent-soft: rgba(242, 160, 61, 0.12);
  --accent-ink: #1c1306;
  --ok: #45d48b;
  --ok-soft: rgba(69, 212, 139, 0.12);
  --warn: #f2c94c;
  --warn-soft: rgba(242, 201, 76, 0.12);
  --danger: #ff6b5e;
  --danger-soft: rgba(255, 107, 94, 0.12);
  --info: #74c7ea;
  --info-soft: rgba(116, 199, 234, 0.12);

  --font-body: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plex Condensed", "Plex Sans", "Arial Narrow", sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--2: 0.72rem;
  --step--1: 0.83rem;
  --step-0: 0.94rem;
  --step-1: 1.13rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sidebar: 15.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 var(--step-0)/1.55 var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 0% -10%, rgba(242, 160, 61, 0.07), transparent 60%),
    linear-gradient(rgba(214, 235, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 235, 224, 0.025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--s-3); }
code, pre, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.fieldset { border: 0; padding: 0; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: min(var(--sidebar), 85vw);
  display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-5) var(--s-4);
  background: linear-gradient(180deg, #0d1411, #0b110e);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 240ms var(--ease);
}
body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
.main { min-width: 0; }

.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--text); padding: 0 var(--s-2); }
.brand:hover { text-decoration: none; }
.brand-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 14px rgba(242, 160, 61, 0.7);
  animation: led 2.8s ease-in-out infinite;
}
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: 0.01em; }
.brand-text small { font-family: var(--font-mono); font-size: var(--step--2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  min-height: 40px; padding: var(--s-2) var(--s-3);
  color: var(--muted); border-radius: var(--radius-sm);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-link.is-active::before {
  content: ""; position: absolute; left: -1rem; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0; box-shadow: 0 0 12px rgba(242, 160, 61, 0.6);
}
.nav-index { font-family: var(--font-mono); font-size: var(--step--2); color: var(--faint); letter-spacing: 0.05em; }
.nav-link.is-active .nav-index { color: var(--accent); }

.sidebar-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); padding: var(--s-4) var(--s-2) 0; border-top: 1px solid var(--border); }
.whoami { display: flex; flex-direction: column; min-width: 0; }
.whoami-label { font-family: var(--font-mono); font-size: var(--step--2); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.whoami-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: rgba(10, 15, 13, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-brand { font-family: var(--font-display); font-size: var(--step-1); }
.nav-toggle {
  min-height: 44px; padding: 0 var(--s-4); border-radius: var(--radius-sm);
  font: 500 var(--step--1) var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); cursor: pointer;
}

.content { width: 100%; max-width: 76rem; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-8); }

@media (min-width: 64rem) {
  .shell { grid-template-columns: var(--sidebar) 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; width: auto; transform: none; transition: none; }
  body.nav-open .sidebar { box-shadow: none; }
  .topbar { display: none; }
  .content { padding: var(--s-7) var(--s-6) var(--s-8); }
}

/* ------------------------------------------------------------ page head */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-2);
  font: 500 var(--step--2) var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.page-head .lede { margin: var(--s-2) 0 0; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.actions form { margin: 0; }

/* ------------------------------------------------------------ panels */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 140px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel-head h2 { font-size: var(--step-1); }
.panel-head .muted { font-size: var(--step--1); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush .panel-head { padding: var(--s-5) var(--s-5) 0; }
.panel-accent { border-color: rgba(242, 160, 61, 0.35); background: linear-gradient(180deg, rgba(242, 160, 61, 0.08), var(--surface) 160px); }
.panel-danger { border-color: rgba(255, 107, 94, 0.25); }

.grid { display: grid; gap: var(--s-5); margin-bottom: var(--s-5); }
@media (min-width: 52rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3-2 { grid-template-columns: 3fr 2fr; }
  .grid-2-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.grid > .panel { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-5); }

/* ------------------------------------------------------------ stats */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: var(--s-5); }
.stat {
  position: relative; overflow: hidden;
  padding: var(--s-4) var(--s-5) var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 56px; height: 56px;
  background: linear-gradient(225deg, var(--accent-soft), transparent 70%);
}
.stat-label { font: 500 var(--step--2) var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.stat-value { display: block; margin-top: var(--s-2); font: 600 var(--step-4)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-value small { font-size: var(--step-1); color: var(--muted); font-weight: 600; margin-left: var(--s-1); }
.stat-foot { margin-top: var(--s-2); font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------ tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th {
  text-align: left; white-space: nowrap;
  padding: var(--s-3) var(--s-4);
  font: 500 var(--step--2) var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.15);
}
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background 120ms var(--ease); }
.table tbody tr:hover { background: rgba(214, 235, 224, 0.025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { justify-content: flex-end; flex-wrap: nowrap; }
.cell-title { font-weight: 500; color: var(--text); }
.cell-title:hover { color: var(--accent); }
.cell-sub { display: block; color: var(--muted); font-size: var(--step--2); }
.empty { padding: var(--s-7) var(--s-5); text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--s-2); }

/* ------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  font: 500 var(--step--2)/1.6 var(--font-mono); letter-spacing: 0.04em; white-space: nowrap;
  color: var(--muted); background: rgba(214, 235, 224, 0.06); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before { display: none; }
.badge-ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(69, 212, 139, 0.25); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(242, 201, 76, 0.25); }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 107, 94, 0.25); }
.badge-info { color: var(--info); background: var(--info-soft); border-color: rgba(116, 199, 234, 0.25); }
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: rgba(242, 160, 61, 0.3); }
.badge-ok.is-live::before { box-shadow: 0 0 0 0 rgba(69, 212, 139, 0.6); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(69, 212, 139, 0.55); } 80%, 100% { box-shadow: 0 0 0 6px rgba(69, 212, 139, 0); } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4);
  font: 500 var(--step--1) var(--font-body); color: var(--text);
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.btn:hover { text-decoration: none; background: #213029; border-color: rgba(214, 235, 224, 0.26); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 20px -8px rgba(242, 160, 61, 0.7); font-weight: 600; }
.btn-primary:hover { background: #f6b25c; border-color: #f6b25c; }
.btn-danger { color: var(--danger); background: transparent; border-color: rgba(255, 107, 94, 0.35); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-sm { min-height: 32px; padding: 0 var(--s-3); font-size: var(--step--2); }
@media (max-width: 40rem) { .btn { min-height: 44px; } .btn-sm { min-height: 40px; } }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .form-row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font: 500 var(--step--2) var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hint { font-size: var(--step--2); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: var(--s-2) var(--s-3);
  font: 400 var(--step-0) var(--font-body); color: var(--text);
  background: #0c1210; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.input.mono { font-family: var(--font-mono); font-size: var(--step--1); }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled { opacity: 0.45; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding-top: var(--s-2); }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-end; }
.inline-form .field { flex: 1 1 14rem; }

.check { display: inline-flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.check input {
  appearance: none; flex: none; margin: 2px 0 0; width: 20px; height: 20px;
  border: 1px solid var(--border-strong); border-radius: 5px; background: #0c1210; cursor: pointer;
  display: grid; place-content: center; transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform 120ms var(--ease); margin-top: -2px; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check-text strong { display: block; font-weight: 500; }
.check-text span { color: var(--muted); font-size: var(--step--1); }

.choice-grid { display: grid; gap: var(--s-3); }
@media (min-width: 40rem) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; padding: var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--radius); background: #0c1210; cursor: pointer; transition: border-color 140ms var(--ease), background 140ms var(--ease); }
.choice input { position: absolute; opacity: 0; }
.choice strong { display: block; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--s-1); }
.choice span { color: var(--muted); font-size: var(--step--1); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

details.more { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); }
details.more summary { cursor: pointer; color: var(--muted); font-size: var(--step--1); }
details.more[open] summary { margin-bottom: var(--s-3); }

/* ------------------------------------------------------------ flash */
.flash-stack { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.flash {
  padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); border-left-width: 3px; background: var(--surface-2);
  animation: rise 320ms var(--ease) both;
}
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--danger); background: linear-gradient(90deg, var(--danger-soft), var(--surface-2) 40%); }
.flash-warning { border-left-color: var(--warn); }

.callout { padding: var(--s-4); border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); font-size: var(--step--1); color: var(--muted); }
.callout strong { color: var(--text); }
.callout-warn { border-color: rgba(242, 201, 76, 0.3); background: var(--warn-soft); }
.callout-danger { border-color: rgba(255, 107, 94, 0.3); background: var(--danger-soft); }

/* ------------------------------------------------------------ code & QR */
.code { position: relative; }
.code pre {
  margin: 0; padding: var(--s-4); overflow-x: auto;
  font-size: var(--step--1); line-height: 1.65; color: #cfe0d6;
  background: #070b09; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.code .copy { position: absolute; top: var(--s-2); right: var(--s-2); }
.cmd { display: flex; gap: var(--s-2); align-items: stretch; }
.cmd code { flex: 1; min-width: 0; padding: var(--s-3); overflow-x: auto; white-space: nowrap; background: #070b09; border: 1px solid rgba(242, 160, 61, 0.35); border-radius: var(--radius-sm); color: var(--accent); }
.qr-frame { display: grid; place-items: center; padding: var(--s-4); background: #f4f1ea; border-radius: var(--radius); box-shadow: 0 0 0 6px rgba(242, 160, 61, 0.12), var(--shadow); }
.qr-frame img { display: block; width: min(100%, 288px); height: auto; image-rendering: pixelated; }
.steps { margin: var(--s-5) 0 0; padding-left: 1.25rem; color: var(--muted); font-size: var(--step--1); }
.inline-form + .kv, .form-actions + .kv, .kv + .form-actions { margin-top: var(--s-5); }
.steps li + li { margin-top: var(--s-1); }
.steps strong { color: var(--text); font-weight: 500; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: 0; font-size: var(--step--1); }
.kv dt { font: 500 var(--step--2)/2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.feed li:last-child { border-bottom: 0; }
.feed time { grid-row: span 2; font-family: var(--font-mono); font-size: var(--step--2); color: var(--faint); padding-top: 2px; }
.feed .who { color: var(--muted); font-size: var(--step--2); }

.pager { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); }

/* ------------------------------------------------------------ login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: var(--s-5) var(--s-4); }
.auth-card { width: min(100%, 56rem); display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 48rem) { .auth-card { grid-template-columns: 1.1fr 1fr; } }
.auth-hero {
  position: relative; padding: var(--s-6); min-height: 14rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6);
  background:
    radial-gradient(24rem 16rem at 100% 100%, rgba(242, 160, 61, 0.18), transparent 70%),
    linear-gradient(rgba(242, 160, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 160, 61, 0.06) 1px, transparent 1px),
    #0b110e;
  background-size: auto, 24px 24px, 24px 24px, auto;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 48rem) { .auth-hero { border-bottom: 0; border-right: 1px solid var(--border); } }
.auth-hero h1 { font-size: var(--step-4); line-height: 1; }
.auth-hero h1 em { font-style: normal; color: var(--accent); }
.auth-hero p { color: var(--muted); max-width: 32ch; margin: var(--s-3) 0 0; }
.auth-meta { font: 500 var(--step--2) var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); display: flex; gap: var(--s-4); flex-wrap: wrap; }
.auth-form { padding: var(--s-6); display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.auth-form h2 { font-size: var(--step-2); }

/* ------------------------------------------------------------ motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal > * { animation: rise 420ms var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: 60ms; }
.reveal > *:nth-child(3) { animation-delay: 120ms; }
.reveal > *:nth-child(4) { animation-delay: 180ms; }
.reveal > *:nth-child(5) { animation-delay: 240ms; }
.reveal > *:nth-child(n+6) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
