/* The login page in the Dense dark look (arhum's pick, check 55e7ec). System fonts: the gate serves only
   this file, login.js and the icon before sign-in. No inline styles: the CSP is style-src 'self'. */
:root { color-scheme: dark; --bg: #0e0e11; --panel: #131316; --side: #0a0a0c; --line: #232329; --ink: #ededf2; --ink-2: #b3b3bd; --ink-3: #74747f; --accent: #8583ff; --bad: #f26b60; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(900px 500px at 50% -10%, rgba(133,131,255,.14), transparent 60%), var(--bg); color: var(--ink); font: 13.5px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.top { display: flex; align-items: center; gap: 8px; padding: calc(18px + env(safe-area-inset-top)) 24px 18px; font-weight: 600; font-size: 14px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #9b99ff, #5d5ae0); color: #fff; display: grid; place-items: center; font-size: 11.5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 14px rgba(133,131,255,.3); }
.host { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 12px; }
main { flex: 1; display: grid; place-items: center; padding: 20px; }
.card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px 26px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); text-align: center; }
h1 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 20px; }
.sub b { color: var(--ink); }
.pair { display: flex; align-items: center; justify-content: center; gap: 22px; }
.qr { display: block; border-radius: 10px; padding: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 40px -10px rgba(133,131,255,.5); image-rendering: pixelated; }
.num { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 14px; background: var(--side); border: 1px solid var(--line); font: 600 48px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.ring { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar { width: 120px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; display: block; }
#fill { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 2px; transform-origin: left; transition: transform 1s linear; }
.muted { color: var(--ink-3); font-size: 12px; margin: 14px 0 0; }
.warn { color: var(--bad); font-weight: 600; margin: 12px 0 0; }
.warn:empty { display: none; }
.red { color: var(--bad); letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; margin-top: 18px; border-radius: 8px; border: 1px solid #2a2a31; background: #19191e; color: var(--ink); font: 500 13.5px inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn.primary { background: linear-gradient(180deg, #8f8dff, #6c69f0); border-color: #7c7af5; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(133,131,255,.25), 0 8px 20px -8px rgba(133,131,255,.7); }
.cmds { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; color: var(--ink-3); font-size: 12px; }
code { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; background: var(--side); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: var(--ink); }
#code { width: 100%; height: 52px; text-align: center; font: 600 22px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; background: var(--side); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; outline: 0; }
#code:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(133,131,255,.18); }
#code::placeholder { color: #3a3a44; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.foot { display: flex; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--ink-3); }
/* A phone: the button first, the QR below for another phone */
@media (max-width: 560px), (pointer: coarse) {
  .card { padding: 26px 20px 22px; }
  #approve { display: flex; flex-direction: column; align-items: center; }
  .pair { display: contents; }
  .num { order: 1; }
  #here { order: 2; width: 100%; height: 44px; font-size: 15px; }
  #here-note { order: 3; }
  .qr { order: 4; margin-top: 14px; }
  .ring { order: 5; }
  #newbrowser { order: 6; }
  #approve > .muted:last-child { order: 7; }
  body:not(.here) .num { order: 5; margin-top: 16px; width: 92px; height: 92px; font-size: 36px; }
}
