/* Handoff: the phone page and shared tokens.
   One memorable element: the test-card colour bars, the thing a TV shows when nothing is on.
   Everything else stays quiet. System fonts only: this page asks for passwords, so it loads nothing third-party. */

:root {
  --fog: #e8ecf2;
  --paper: #ffffff;
  --ink: #16213e;
  --ink-soft: #4b5873;
  --line: #c5cddb;
  --focus: #1d4ed8;
  --warn-bg: #fff6d6;
  --warn-edge: #b89400;
  --danger: #b3261e;
  --ok: #17744a;
  --b1: #c4c4c4; --b2: #c9c500; --b3: #00c6c6; --b4: #00c240; --b5: #c500c5; --b6: #c60000; --b7: #0000c6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0e1526;
    --paper: #172036;
    --ink: #eaf0fb;
    --ink-soft: #a5b1c9;
    --line: #2e3a56;
    --focus: #7aa2ff;
    --warn-bg: #2b2610;
    --warn-edge: #d9b800;
    --danger: #ff8a80;
    --ok: #62d49a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); line-height: 1.45; min-height: 100vh; }

.bars {
  height: 8px;
  background: linear-gradient(90deg,
    var(--b1) 0 14.2857%, var(--b2) 0 28.5714%, var(--b3) 0 42.8571%, var(--b4) 0 57.1428%,
    var(--b5) 0 71.4285%, var(--b6) 0 85.7142%, var(--b7) 0);
}
.bars--tall { height: 5.5rem; border-radius: 6px; margin: 0 0 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .bars--wipe { animation: wipe 520ms cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

main { max-width: 30rem; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; outline: none; }

h1 { text-wrap: balance; font-size: 1.9rem; line-height: 1.15; font-weight: 760; letter-spacing: -0.015em; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.lede { color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 34ch; text-wrap: balance; }

.appname { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.appname h1 { margin: 0; }
.appname img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--line); }

.notice { margin: 0 0 1.4rem; padding: .7rem .9rem; border-left: 4px solid var(--warn-edge); background: var(--warn-bg); font-size: .95rem; }
.notice strong { font-weight: 700; }
.verified { margin: 0 0 1.4rem; color: var(--ok); font-weight: 600; font-size: .95rem; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.15rem 1.1rem 1.25rem; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.row { display: flex; gap: .5rem; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], input[type="tel"] {
  width: 100%; min-height: 3.1rem; padding: .6rem .8rem; font: inherit; font-size: 1.125rem; /* >=16px: no iOS zoom */
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.code { font-size: 1.6rem; letter-spacing: .18em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

button { font: inherit; cursor: pointer; }
.btn { width: 100%; min-height: 3.25rem; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.ghost { flex: none; min-width: 4.5rem; border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 6px; font-weight: 600; }
.linkish { background: none; border: 0; padding: .25rem 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }

.error { color: var(--danger); font-weight: 600; margin: 0 0 1rem; }
.fine { color: var(--ink-soft); font-size: .88rem; margin: 1.1rem 0 0; max-width: 40ch; }
.foot { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
