/* ==========================================================================
   Sign-in stage. Kept out of app.css on purpose - this is the only page that
   carries the animated field, and nothing inside the app should inherit it.
   The palette below is app.css's, token for token, so the sign-in screen and
   the directory behind it read as one product.
   ========================================================================== */

/* The webfonts are NOT imported here on purpose. An @import cannot start
   until this file has downloaded and parsed, which put the fonts a whole
   round trip behind the HTML and pushed first paint out to ~400ms. They are
   <link>ed from login.html instead, so both requests start together. */

/* Registered so the conic border can be animated by angle rather than by
   rotating the element, which would spin the rounded box instead of the
   light. Browsers without @property just keep the gradient still. */
@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Straight from app.css - paper first. */
  --canvas:    #fcfefe;
  --canvas-2:  #f6fbfa;
  --surface:   #ffffff;
  --surface-2: #f9fcfc;
  --line:      #eaf2f1;
  --line-2:    #d9e8e6;

  --ink:   #0c1e1b;
  --ink-2: #4e6461;
  --ink-3: #8aa09d;

  --brand:      #00a894;
  --brand-lift: #0ac6b0;
  --brand-deep: #00786b;
  --wash:       #ecfbf8;
  --wash-line:  rgba(0, 168, 148, 0.18);

  --bad:      #b3243f;
  --bad-bg:   #fdf1f4;
  --bad-line: rgba(179, 36, 63, 0.16);

  /* The two colours either side of the brand teal. Deep enough to hold their
     own against white - the neon versions wash out completely on paper. */
  --cyan:   #0891b2;
  --violet: #5b4fd6;

  --e1: 0 1px 2px rgba(12, 30, 27, 0.04), 0 1px 1px rgba(12, 30, 27, 0.02);
  --e3: 0 26px 52px -26px rgba(12, 30, 27, 0.22), 0 10px 22px -14px rgba(12, 30, 27, 0.12);
  --ring: 0 0 0 3px rgba(0, 168, 148, 0.24);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --ui:      "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--wash); color: var(--brand-deep); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* ============================================================== the stage
   Six stacked layers. Each is faint on its own; the depth comes from the
   pile, not from any single layer shouting. */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(70rem 38rem at 78% -12%, rgba(10, 198, 176, 0.1), transparent 62%),
    radial-gradient(52rem 32rem at 4% 4%, rgba(0, 168, 148, 0.07), transparent 60%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-2) 100%);
}

/* --- drifting light ------------------------------------------------------ */

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.o1 {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -16vh; left: -8vw;
  background: radial-gradient(circle, rgba(10, 198, 176, 0.24), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

/* Kept low and pushed further off-screen: any more violet than this and the
   white starts reading grey rather than as a tint of light. */
.o2 {
  width: 40vw; height: 40vw; min-width: 340px; min-height: 340px;
  bottom: -26vh; right: -12vw;
  background: radial-gradient(circle, rgba(91, 79, 214, 0.1), transparent 66%);
  animation: drift-b 31s var(--ease) infinite alternate;
}

.o3 {
  width: 30vw; height: 30vw; min-width: 260px; min-height: 260px;
  top: 42%; left: 46%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.13), transparent 66%);
  animation: drift-c 23s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 12vh, 0) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-11vw, -9vh, 0) scale(0.92); }
}
@keyframes drift-c {
  from { transform: translate3d(-6vw, 4vh, 0) scale(0.9); }
  to   { transform: translate3d(7vw, -7vh, 0) scale(1.22); }
}

/* --- the neural field ---------------------------------------------------- */

/* Masked like the lattice, so the wires dissolve into paper at the edges
   instead of stranding hard little triangles in the corners. */
.stage-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-mask-image: radial-gradient(92% 82% at 50% 44%, #000 38%, transparent 100%);
  mask-image: radial-gradient(92% 82% at 50% 44%, #000 38%, transparent 100%);
  animation: fade-in 1.6s var(--ease) 0.25s forwards;
}

/* --- lattice and sweep --------------------------------------------------- */

/* Same 1px teal lattice the rest of the site uses behind its content. */
.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 148, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 148, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(72% 58% at 50% 40%, #000 0%, transparent 76%);
  mask-image: radial-gradient(72% 58% at 50% 40%, #000 0%, transparent 76%);
}

/* A soft bloom travelling down the page. Both ends of the gradient fade to
   nothing and the sides are masked off, so it never leaves a hard seam
   across the headline or the card. */
.stage-scan {
  position: absolute;
  left: 0; right: 0;
  height: 44vh;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 168, 148, 0.022) 46%,
    rgba(10, 198, 176, 0.055) 84%,
    rgba(10, 198, 176, 0.085) 93%,
    rgba(10, 198, 176, 0.03) 98%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  animation: sweep 11s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes sweep {
  0%       { transform: translateY(-50vh); opacity: 0; }
  14%, 70% { opacity: 1; }
  100%     { transform: translateY(118vh); opacity: 0; }
}

/* --- the orbital core, sat behind the copy ------------------------------- */

.stage-rings {
  position: absolute;
  top: 50%; left: 27%;
  width: min(62vh, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: fade-in 2s var(--ease) 0.4s forwards;
}

.stage-rings svg { width: 100%; height: 100%; overflow: visible; }

.ring-slow  { transform-origin: 50% 50%; animation: spin 46s linear infinite; }
.ring-mid   { transform-origin: 50% 50%; animation: spin 28s linear infinite reverse; }
.ring-fast  { transform-origin: 50% 50%; animation: spin 15s linear infinite; }
.ring-pulse { transform-origin: 50% 50%; animation: breathe 6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.07); opacity: 1; }
}

/* --- finishing passes ---------------------------------------------------- */

/* Inverted from the usual dark vignette: the edges fade back to paper so the
   field never crowds the browser chrome. */
.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(118% 88% at 50% 44%, transparent 42%, rgba(252, 254, 254, 0.9) 100%);
}

/* Paper grain. Barely there - enough to stop the white reading as flat. */
.stage-grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 700ms steps(4) infinite;
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-3%, 2%, 0); }
  50%  { transform: translate3d(2%, -3%, 0); }
  75%  { transform: translate3d(-2%, -2%, 0); }
  100% { transform: translate3d(3%, 3%, 0); }
}

@keyframes fade-in { to { opacity: 1; } }

/* ================================================================= layout */

.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6vh 40px;
  min-height: 100vh;
  min-height: 100svh;
}

/* Everything on the page arrives on this one curve, staggered by --d. */
.in {
  opacity: 0;
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* =============================================================== the hero */

.hero { max-width: 560px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--wash-line);
  background: linear-gradient(150deg, var(--wash), #ffffff);
  box-shadow: 0 8px 20px -12px rgba(0, 168, 148, 0.7), inset 0 1px 0 #ffffff;
}

.mark-glyph svg { width: 24px; height: 24px; stroke: var(--brand-deep); }

/* The halo that keeps leaving the logo: the smallest heartbeat on the page. */
.mark-glyph::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(0, 168, 148, 0.5);
  animation: emit 3.4s var(--ease) infinite;
}

@keyframes emit {
  0%        { transform: scale(1);    opacity: 0.75; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.mark b {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--wash-line);
  border-radius: 999px;
  background: var(--wash);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(0, 168, 148, 0.9);
  animation: blip 1.9s ease-in-out infinite;
}

@keyframes blip {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}

.hero-title {
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* Deep teal through to indigo, sliding continuously. Every stop clears 3:1
   on paper, which the neon version of this gradient does not. */
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--brand) 32%, var(--brand-deep) 58%, var(--violet) 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hue 7s linear infinite;
}

@keyframes hue { to { background-position: 220% 0; } }

/* --- the typing line ----------------------------------------------------- */

.term {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 470px;
  margin-top: 36px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--e1);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-2);
}

.term-lights { display: flex; gap: 5px; flex: none; }

.term-lights i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  animation: think 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}

@keyframes think {
  0%, 100% { background: var(--line-2); transform: scale(1); }
  50%      { background: var(--brand); transform: scale(1.25); box-shadow: 0 0 9px rgba(0, 168, 148, 0.75); }
}

.term code { min-width: 0; }
.term-arrow { color: var(--brand-deep); font-weight: 700; }

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--brand);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* =============================================================== the card */

.auth {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.card {
  position: relative;
  padding: 32px 32px 34px;
  border-radius: 26px;
  background:
    radial-gradient(620px 320px at var(--mx, 50%) var(--my, 0%), rgba(0, 168, 148, 0.07), transparent 68%),
    linear-gradient(168deg, #ffffff, var(--surface-2));
  box-shadow: var(--e3), 0 0 60px -34px rgba(0, 168, 148, 0.55);
}

/* One light travelling around the border, masked down to the 1px edge. It
   rides on top of the resting hairline rather than replacing it. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    conic-gradient(from var(--a),
      var(--line-2) 0deg,
      var(--brand-lift) 30deg,
      var(--brand) 66deg,
      var(--brand-deep) 92deg,
      var(--line-2) 140deg,
      var(--line-2) 206deg,
      var(--violet) 258deg,
      var(--line-2) 318deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: turn 8s linear infinite;
  pointer-events: none;
}

@keyframes turn { to { --a: 360deg; } }

.card-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.card-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--wash-line), transparent);
}

.card-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.card-sub {
  margin: 10px 0 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.card-sub strong { color: var(--ink); font-weight: 600; }

.msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--bad-line);
  border-radius: 12px;
  background: var(--bad-bg);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--bad);
  animation: shake 0.5s var(--ease);
}

.msg svg { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: var(--bad); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22%      { transform: translateX(-6px); }
  46%      { transform: translateX(5px); }
  70%      { transform: translateX(-3px); }
}

/* --- fields -------------------------------------------------------------- */

.form { display: grid; gap: 18px; margin-top: 24px; }

.field { display: grid; gap: 8px; }

.field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s var(--ease);
}

.field:focus-within label { color: var(--brand-deep); }

.input-wrap { position: relative; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.input::placeholder { color: var(--ink-3); }

.input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: var(--ring);
}

/* Light gathering under the field as it takes focus. */
.input-wrap::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-lift), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}

.input-wrap:focus-within::after { transform: scaleX(1); opacity: 1; }

/* --- the six-slot code field --------------------------------------------- */

.otp-wrap { position: relative; }

.otp-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.otp-slots i {
  display: grid;
  place-items: center;
  height: 60px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.otp-slots i.is-filled {
  border-color: var(--wash-line);
  background: var(--wash);
  color: var(--brand-deep);
  box-shadow: 0 6px 16px -10px rgba(0, 168, 148, 0.9);
  animation: pop 0.3s var(--ease);
}

@keyframes pop {
  0%   { transform: scale(0.86); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.otp-slots i.is-active {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: var(--ring);
}

.otp-slots i.is-active::after {
  content: "";
  width: 2px;
  height: 26px;
  background: var(--brand);
  animation: blink 1.05s steps(1) infinite;
}

/* With scripting off this is the whole code field: one ordinary box. */
.otp-wrap .input { text-align: center; letter-spacing: 0.4em; font-size: 1.15rem; }

/* Once JS is driving the slots the real input goes invisible on top of them.
   It must stay fully transparent or it paints over the rail. */
.js .otp-wrap .input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  caret-color: transparent;
  letter-spacing: 0;
  z-index: 2;
  cursor: pointer;
}

.js .otp-wrap .input::selection { background: transparent; }

/* --- the button ---------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-lift), var(--brand) 46%, var(--brand-deep) 82%, var(--violet) 140%);
  background-size: 210% 100%;
  color: #ffffff;
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px -12px rgba(0, 168, 148, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-position 0.6s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 36px -12px rgba(0, 168, 148, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn:active { transform: translateY(0) scale(0.99); }

/* Sheen on a loop rather than on hover - a still button on this page would
   look switched off. */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: sheen 4.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%        { transform: translateX(-220%); }
  55%, 100% { transform: translateX(420%); }
}

.btn-body { display: inline-flex; align-items: center; gap: 9px; }
.btn svg { width: 17px; height: 17px; stroke: currentColor; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Mid-flight: the label swaps to a working state and the button stops taking
   a second click. */
.btn.is-busy { pointer-events: none; background-position: 100% 0; }
.btn.is-busy .btn-body { display: none; }
.btn.is-busy .btn-work { display: inline-flex; }

.btn-work { display: none; align-items: center; gap: 6px; }

.btn-work i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: hop 1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.14s);
}

@keyframes hop {
  0%, 100% { transform: translateY(0);    opacity: 0.45; }
  50%      { transform: translateY(-5px); opacity: 1; }
}

/* --- card footer --------------------------------------------------------- */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.linkbtn {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand-deep);
  cursor: pointer;
}

.linkbtn:hover { text-decoration: underline; }

.foot a { color: var(--ink-3); text-decoration: none; transition: color 0.2s var(--ease); }
.foot a:hover { color: var(--brand-deep); }

.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.79rem;
  color: var(--ink-3);
}

.auth-note svg { width: 13px; height: 13px; stroke: var(--ink-3); flex: none; }

/* =========================================================== responsive  */

@media (max-width: 1080px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 7vh 28px 60px;
    justify-items: center;
    text-align: center;
  }
  .hero { max-width: 620px; }
  .mark { justify-content: center; }
  .term { margin-left: auto; margin-right: auto; }
  .auth { justify-self: center; text-align: left; }
  .stage-rings { left: 50%; top: 30%; opacity: 0.6; }
}

@media (max-width: 620px) {
  .split { padding: 5vh 18px 44px; gap: 30px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .term { display: none; }
  .card { padding: 26px 20px 28px; border-radius: 22px; }
  .otp-slots { gap: 6px; }
  .otp-slots i { height: 52px; font-size: 1.25rem; border-radius: 12px; }
  .stage-grain { display: none; }
}

/* ============================================================== reduced  */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .in, .stage-net, .stage-rings { opacity: 1; }
  .stage-scan, .stage-grain { display: none; }
}
