/* Customer auth v3 — "paper workspace" direction. Notion-like calm surfaces
   (warm paper, ink type, hairline borders) plus a live workspace showcase:
   page tree, database rows, slash menu, multiplayer cursors.
   Self-contained: no external fonts/icons, no inline styles (CSP-safe).
   Always white, accented with the logo green (#22c55e). */

:root {
  --paper: #ffffff;
  --paper-2: #f7f9f8;
  --card: #ffffff;
  --ink: #1f1e1c;
  --ink-2: #464b48;
  --muted: #848b87;
  --line: #e8ebe9;
  --line-2: #d6dbd8;
  --hover: #f1f5f2;
  --brand: #22c55e;
  --brand-strong: #16a34a;
  --brand-deep: #15803d;
  --accent: #16a34a;
  --accent-soft: rgba(34, 197, 94, .18);
  --hl: #bbf7d0;
  --green: #0f7b6c;   --green-bg: #dbeddb;
  --blue: #0b6bcb;    --blue-bg: #d3e5ef;
  --purple: #6940a5;  --purple-bg: #e8deee;
  --red: #c4320a;     --red-bg: #fdebe4;
  --show-bg: #f4fbf6;
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, .06);
  --shadow: 0 1px 2px rgba(15,15,15,.04), 0 8px 24px rgba(15,15,15,.08), 0 24px 60px rgba(15,15,15,.08);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Lyon Text", Georgia, "Times New Roman", ui-serif, serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}


* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
p { margin: 0; }
.is-hidden { display: none !important; }

/* ---------- Layout ---------- */
.nx-layout { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 1024px) {
  .nx-layout { grid-template-columns: minmax(460px, 1fr) minmax(0, 1.12fr); }
}

.nx-form-col {
  display: flex; flex-direction: column; min-height: 100dvh;
  padding: 20px 16px; background: var(--paper);
}
@media (min-width: 640px) { .nx-form-col { padding: 24px 40px; } }

.nx-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.nx-brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.nx-brand-mark img { width: 22px; height: 22px; }
.nx-brand-name { font-size: 15px; }
.nx-top-link {
  display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 550;
  padding: 6px 10px; border-radius: 6px; transition: background .15s;
}
.nx-top-link:hover { background: var(--hover); }
.nx-top-muted { color: var(--muted); font-weight: 450; }
@media (max-width: 420px) { .nx-top-muted { display: none; } }

.nx-form-wrap {
  width: 100%; max-width: 380px; margin: auto; padding: 40px 0 32px;
  animation: nx-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.nx-form-wrap.is-wide { max-width: 520px; }

.nx-page-icon { font-size: 44px; line-height: 1; margin-bottom: 18px; }
.nx-title {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 38px); line-height: 1.12; letter-spacing: -.02em;
}
.nx-title span { display: block; }
.nx-title-soft { color: var(--muted); }
.nx-lead { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; max-width: 46ch; }

/* ---------- Social ---------- */
.nx-social { display: grid; gap: 8px; }
.nx-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--card); font-weight: 550; font-size: 14px;
  box-shadow: var(--shadow-sm); transition: background .15s, transform .15s, border-color .15s;
}
.nx-social-btn:hover { background: var(--hover); border-color: var(--line-2); }
.nx-social-btn:active { transform: scale(.99); }
.nx-social-btn svg { width: 18px; height: 18px; }

.nx-divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
  color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.nx-divider::before, .nx-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Callouts ---------- */
.nx-callout {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px;
  border-radius: 8px; font-size: 14px; animation: nx-shake .4s ease both;
}
.nx-callout.is-error { background: var(--red-bg); color: var(--red); }
.nx-callout.is-success { background: var(--green-bg); color: var(--green); animation: nx-rise .4s ease both; }
.nx-callout-icon { line-height: 1.4; }

/* ---------- Form ---------- */
.nx-form { display: grid; gap: 16px; }
.nx-grid { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .nx-grid { grid-template-columns: 1fr 1fr; }
  .nx-field.is-full { grid-column: 1 / -1; }
}
.nx-field { display: grid; gap: 6px; min-width: 0; }
.nx-field label, .nx-label-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.nx-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.nx-link-muted { font-size: 13px; color: var(--muted); }
.nx-link-muted:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nx-optional { font-size: 12px; color: var(--muted); }

.nx-input { position: relative; display: flex; align-items: center; }
.nx-input input {
  width: 100%; height: 42px; padding: 0 40px 0 38px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card);
  box-shadow: inset 0 1px 2px rgba(15,15,15,.03);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.nx-input input::placeholder { color: var(--muted); opacity: .8; }
.nx-input input:hover { border-color: var(--muted); }
.nx-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nx-input-icon {
  position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted);
  pointer-events: none; transition: color .15s;
}
.nx-at { display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1; }
.nx-input:focus-within .nx-input-icon { color: var(--accent); }
.nx-eye {
  position: absolute; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.nx-eye:hover { background: var(--hover); color: var(--ink); }
.nx-eye svg { width: 17px; height: 17px; }

.nx-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.nx-check input { position: absolute; opacity: 0; pointer-events: none; }
.nx-check-box {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2);
  background: var(--card); display: grid; place-items: center; transition: all .15s;
}
.nx-check input:checked + .nx-check-box { background: var(--accent); border-color: var(--accent); }
.nx-check input:checked + .nx-check-box::after {
  content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.nx-check input:focus-visible + .nx-check-box { box-shadow: 0 0 0 3px var(--accent-soft); }

.nx-submit {
  position: relative; overflow: hidden; height: 44px; margin-top: 4px; border: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong)); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(21,128,61,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.nx-submit::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
}
.nx-submit:hover::after { transform: translateX(100%); transition: transform .7s ease; }
.nx-submit:hover { box-shadow: 0 8px 22px rgba(34,197,94,.35); }
.nx-submit:hover svg { transform: translateX(3px); }
.nx-submit:active { transform: scale(.99); }
.nx-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.nx-submit:disabled { opacity: .7; cursor: progress; }
.nx-submit svg { width: 17px; height: 17px; transition: transform .2s; }

/* Password strength (register) */
.nx-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: center; margin-top: -4px; }
.nx-strength-bar { height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.nx-strength-text { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.nx-strength[data-level="1"] .nx-strength-bar:nth-child(-n+1) { background: #e16b5c; }
.nx-strength[data-level="2"] .nx-strength-bar:nth-child(-n+2) { background: #e3a33b; }
.nx-strength[data-level="3"] .nx-strength-bar:nth-child(-n+3) { background: #4ade80; }
.nx-strength[data-level="4"] .nx-strength-bar:nth-child(-n+4) { background: var(--brand-strong); }

.nx-fineprint { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.nx-fineprint a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nx-fineprint a:hover { text-decoration-color: var(--brand-deep); }

.nx-footer { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.nx-secure { display: inline-flex; align-items: center; gap: 6px; }
.nx-secure-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(47,182,124,.18); }

/* ---------- Showcase (right column) ---------- */
.nx-showcase { display: none; }
@media (min-width: 1024px) {
  .nx-showcase {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    gap: 28px; padding: 48px 48px 36px; margin: 12px 12px 12px 0; border-radius: 20px;
    background: var(--show-bg); border: 1px solid var(--line);
  }
}
.nx-dots {
  position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 75%);
}
.nx-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.nx-glow.one { width: 340px; height: 340px; right: -80px; top: 80px; background: #86efac; }
.nx-glow.two { width: 300px; height: 300px; left: -60px; bottom: -60px; background: #bbf7d0; }

.nx-show-head, .nx-stage, .nx-hints { position: relative; z-index: 1; }

.nx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.nx-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: nx-pulse 2s infinite; }
.nx-show-title {
  margin: 16px 0 10px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.02em;
}
.nx-show-title span { display: block; }
.nx-ink-hl {
  width: fit-content;
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
}
.nx-show-lead { color: var(--ink-2); max-width: 44ch; }

/* Stage + window */
.nx-stage { flex: 1; min-height: 420px; display: flex; align-items: center; padding: 10px 40px 10px 0; }
.nx-window {
  width: 100%; max-width: 640px; border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: nx-rise .7s .1s cubic-bezier(.2,.7,.2,1) both;
}
.nx-win-bar {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.nx-tl { width: 10px; height: 10px; border-radius: 50%; }
.nx-tl.r { background: #ff5f57; } .nx-tl.y { background: #febc2e; } .nx-tl.g { background: #28c840; }
.nx-crumb { margin-left: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-avatars { margin-left: auto; display: flex; }
.nx-av {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff; border: 2px solid var(--paper-2); margin-left: -6px;
}
.nx-av.a { background: #e57a44; } .nx-av.b { background: #4c8bf5; } .nx-av.c { background: var(--muted); }

.nx-win-body { display: grid; grid-template-columns: 170px 1fr; min-height: 360px; }
@media (max-width: 1240px) { .nx-win-body { grid-template-columns: 1fr; } .nx-side { display: none; } }
.nx-side { background: var(--paper-2); border-right: 1px solid var(--line); padding: 10px 8px; font-size: 12.5px; color: var(--ink-2); }
.nx-side p { padding: 4px 8px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-side-ws { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.nx-ws-badge {
  width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
}
.nx-side-search { color: var(--muted); }
.nx-side-label { margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.nx-side-item.is-active { background: var(--hover); color: var(--ink); font-weight: 600; }
.nx-side-item.is-child { padding-left: 22px; }

.nx-doc { position: relative; padding: 0 28px 22px; min-width: 0; }
.nx-cover {
  height: 72px; margin: 0 -28px;
  background:
    radial-gradient(circle at 20% 30%, #86efac 0, transparent 45%),
    radial-gradient(circle at 75% 60%, #a7f3d0 0, transparent 50%),
    linear-gradient(120deg, #dcfce7, #ecfdf5);
}
.nx-cover.is-alt {
  background:
    radial-gradient(circle at 30% 70%, #bbf7d0 0, transparent 45%),
    radial-gradient(circle at 80% 30%, #d9f99d 0, transparent 50%),
    linear-gradient(120deg, #f0fdf4, #dcfce7);
}
.nx-doc-icon { font-size: 34px; line-height: 1; margin-top: -20px; position: relative; }
.nx-doc-title { margin: 8px 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 650; letter-spacing: -.01em; }

.nx-props { display: grid; gap: 4px; margin-bottom: 14px; font-size: 12.5px; }
.nx-prop { display: grid; grid-template-columns: 96px 1fr; align-items: center; }
.nx-prop-k { color: var(--muted); }
.nx-prop-v { color: var(--ink-2); }
.nx-tags { display: inline-flex; gap: 4px; }
.nx-tag { width: fit-content; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.nx-tag.green { background: var(--green-bg); color: var(--green); }
.nx-tag.blue { background: var(--blue-bg); color: var(--blue); }
.nx-tag.purple { background: var(--purple-bg); color: var(--purple); }

.nx-db { border-top: 1px solid var(--line); font-size: 12.5px; }
.nx-db-row {
  display: grid; grid-template-columns: 1.4fr .7fr 1.2fr; gap: 10px; align-items: center;
  padding: 7px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2);
  animation: nx-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.nx-db-row:nth-child(2) { animation-delay: .35s; }
.nx-db-row:nth-child(3) { animation-delay: .45s; }
.nx-db-row:nth-child(4) { animation-delay: .55s; }
.nx-db-row.is-head { color: var(--muted); font-size: 11.5px; }
.nx-meter { position: relative; display: flex; align-items: center; gap: 8px; }
.nx-meter::before { content: ""; position: absolute; left: 0; right: 40px; height: 6px; border-radius: 6px; background: var(--line); }
.nx-meter-fill { position: relative; height: 6px; border-radius: 6px; background: var(--brand); transform-origin: left; animation: nx-grow 1s .6s cubic-bezier(.2,.7,.2,1) both; }
.nx-meter-fill.w82 { width: calc((100% - 40px) * .82); }
.nx-meter-fill.w64 { width: calc((100% - 40px) * .64); background: #4ade80; }
.nx-meter-fill.w41 { width: calc((100% - 40px) * .41); background: #86efac; }
.nx-meter-v { position: absolute; right: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.nx-typing { margin-top: 14px; display: flex; align-items: center; font-size: 14px; color: var(--ink); }
.nx-slash { color: var(--muted); }
.nx-caret { width: 1.5px; height: 17px; margin-left: 1px; background: var(--ink); animation: nx-blink 1s steps(1) infinite; }

/* Register: checklist + templates */
.nx-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.nx-progress-track { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.nx-progress-fill { display: block; width: 50%; height: 100%; background: var(--brand); border-radius: 6px; transform-origin: left; animation: nx-grow 1s .5s cubic-bezier(.2,.7,.2,1) both; }
.nx-todos { display: grid; gap: 2px; margin-bottom: 16px; font-size: 13.5px; }
.nx-todo { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 5px; color: var(--ink); animation: nx-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.nx-todo:nth-child(2) { animation-delay: .1s; } .nx-todo:nth-child(3) { animation-delay: .2s; } .nx-todo:nth-child(4) { animation-delay: .3s; }
.nx-todo.is-done { color: var(--muted); text-decoration: line-through; }
.nx-todo-box {
  width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff;
}
.nx-todo.is-done .nx-todo-box { background: var(--accent); border-color: var(--accent); }
.nx-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nx-tpl {
  display: grid; gap: 6px; padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.nx-tpl-ico { font-size: 18px; }

/* Floating UI */
.nx-float {
  position: absolute; z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
}
.nx-slash-menu {
  width: 236px; right: 0; bottom: 34px; padding: 6px;
  animation: nx-pop .45s 1.1s cubic-bezier(.2,.9,.3,1.2) both, nx-float 6s 1.6s ease-in-out infinite;
}
.nx-menu-label { padding: 4px 8px 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.nx-menu-item { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.nx-menu-item.is-active { background: var(--hover); }
.nx-menu-ico {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 15px;
}
.nx-menu-item > span:last-child { display: grid; }
.nx-menu-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.nx-menu-d { font-size: 11.5px; color: var(--muted); }

.nx-kpi {
  width: 178px; right: 6px; top: 6px; padding: 12px 14px 10px;
  animation: nx-pop .45s .9s cubic-bezier(.2,.9,.3,1.2) both, nx-float 7s 1.4s ease-in-out infinite reverse;
}
.nx-kpi.is-toast { width: 210px; top: auto; bottom: 40px; }
.nx-kpi-k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nx-kpi-v { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.nx-kpi.is-toast .nx-kpi-v { font-size: 17px; }
.nx-kpi-up { font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 1px 6px; border-radius: 4px; }
.nx-kpi-sub { font-size: 12px; color: var(--ink-2); }
.nx-spark { width: 100%; height: 34px; margin-top: 4px; }
.nx-spark-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: nx-draw 1.4s 1.2s ease forwards; vector-effect: non-scaling-stroke; }
.nx-spark-area { fill: var(--accent-soft); }

.nx-cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; pointer-events: none; }
.nx-cursor svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.nx-cursor span {
  margin: 12px 0 0 -2px; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #fff;
}
.nx-cursor.one { left: 44%; top: 56%; animation: nx-cursor-a 9s ease-in-out infinite; }
.nx-cursor.one path { fill: #e57a44; } .nx-cursor.one span { background: #e57a44; }
.nx-cursor.two { left: 62%; top: 68%; animation: nx-cursor-b 11s ease-in-out infinite; }
.nx-cursor.two path { fill: #4c8bf5; } .nx-cursor.two span { background: #4c8bf5; }

.nx-doodle {
  position: absolute; width: 110px; left: -8px; bottom: -6px; z-index: 0;
  stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  stroke-dasharray: 200; stroke-dashoffset: 200; animation: nx-draw 1.6s 1.5s ease forwards;
}

.nx-hints { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); font-size: 13px; }
.nx-hint { display: inline-flex; align-items: center; gap: 8px; }
.nx-kbd {
  min-width: 26px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 6px; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--ink);
}

/* ---------- Motion ---------- */
@keyframes nx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nx-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes nx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nx-draw { to { stroke-dashoffset: 0; } }
@keyframes nx-blink { 50% { opacity: 0; } }
@keyframes nx-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,182,124,.5); } 100% { box-shadow: 0 0 0 8px rgba(47,182,124,0); } }
@keyframes nx-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes nx-cursor-a { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(90px, 40px); } 60% { transform: translate(40px, 110px); } }
@keyframes nx-cursor-b { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-120px, -60px); } 70% { transform: translate(-40px, -130px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .nx-spark-line, .nx-doodle { stroke-dashoffset: 0; }
}

/* Phone login: readable fields without focus zoom and comfortable tap targets. */
@media (max-width:1023px) {
  .nx-form-col { min-width:0; padding-bottom:max(20px,env(safe-area-inset-bottom)); }
  .nx-input input { font-size:16px; min-height:48px; }
  .nx-social-btn,.nx-submit { min-height:48px; }
  .nx-eye { width:44px; height:44px; right:2px; }
  .nx-check { min-height:44px; }
  .nx-check-box { flex-shrink:0; }
  .nx-top-link,.nx-label-row a { display:inline-flex; align-items:center; min-height:44px; }
}
@media (max-width:480px) {
  .nx-form-wrap { padding:28px 0 24px; }
  .nx-title { font-size:clamp(28px,8vw,34px); overflow-wrap:anywhere; }
  .nx-topbar { flex-wrap:wrap; gap:8px 12px; }
  .nx-footer { line-height:1.7; text-align:center; }
}
