/* Anchr — standalone pages (sign in, set up, sign out, offline) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --bg: #0D0B0A; --surface: #161311; --surface-2: #1F1A17; --line: rgba(255,236,222,.08); --line-strong: rgba(255,236,222,.15);
  --text: #F7F2EE; --muted: #A39890; --accent: #FF5B22; --accent-grad: linear-gradient(180deg, #FF6E31 0%, #E2440E 100%);
  --gold: #FFC23D; --bad: #FF6B6B; --ok: #FFC23D; --warn: #FFB547;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--text); font: 450 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; background: var(--bg); }
h1, h2 { font-family: var(--font); font-stretch: 70%; font-weight: 850; line-height: .95; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(44px, 10vw, 64px); margin: 26px 0 10px; }
h2 { font-size: 28px; margin: 38px 0 14px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
code { background: var(--surface-2); padding: 2px 7px; border-radius: 7px; font-size: .88em; word-break: break-all; }
.muted, .lead { color: var(--muted); }
.lead { font-size: 16.5px; margin-bottom: 24px; }
.center { text-align: center; }
.ok { color: var(--ok); font-weight: 650; }
.bad { color: var(--bad); font-weight: 650; }
.warn { color: var(--warn); font-weight: 650; }
.small { font-size: 14px; }

.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.lockup .mark { color: var(--accent); }
.lockup .word { font-stretch: 72%; font-weight: 850; font-size: 28px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }

/* ---------- Sign in: art panel + form panel ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-art {
  position: relative; overflow: hidden; isolation: isolate; min-height: 36dvh; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 24px) 24px 64px;
  background: radial-gradient(120% 90% at 80% 0%, #FF8A3D 0%, #EC4A12 38%, #8F1E05 70%, #2A0E05 100%);
}
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 3px 3px; }
.art-word {
  position: absolute; z-index: -1; left: 50%; bottom: -0.12em; transform: translateX(-50%); white-space: nowrap;
  font: 900 min(46vw, 330px)/0.8 var(--font); font-stretch: 62%; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22);
}
.art-mark { width: min(30vw, 150px); height: auto; color: #fff; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.art-line { display: none; }
.auth-panel { position: relative; margin-top: -32px; background: var(--bg); border-radius: 32px 32px 0 0; padding: 30px 24px calc(env(safe-area-inset-bottom) + 24px); }
.auth-inner { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-inner.narrow { padding: calc(env(safe-area-inset-top) + 13vh) 24px 32px; max-width: 440px; }
.auth-inner.wide { max-width: 760px; padding: calc(env(safe-area-inset-top) + 40px) 22px 56px; }
body.simple { background: radial-gradient(90% 50% at 85% 0%, rgba(255,91,34,.22), transparent 70%), var(--bg); }

@media (min-width: 900px) {
  .auth-wrap { grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
  .auth-art { min-height: 100dvh; padding: 48px; align-content: center; gap: 30px; }
  .art-word { font-size: 330px; }
  .art-mark { width: 170px; }
  .art-line { display: block; margin: 0; text-align: center; font: 850 46px/.98 var(--font); font-stretch: 70%; text-transform: uppercase; color: #fff; }
  .auth-panel { margin: 0; border-radius: 0; display: grid; align-items: center; padding: 48px; }
}

/* ---------- Forms ---------- */
.auth-form { display: grid; gap: 4px; }
label { display: block; font-weight: 550; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
input:not([type=radio]):not([type=checkbox]) {
  display: block; width: 100%; margin-top: 7px; padding: 15px 18px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,34,.16); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent-grad); color: #fff; font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 32px -16px rgba(255,91,34,.85);
}
.btn.wide { width: 100%; }
.btn .arrow { width: 34px; height: 34px; margin-right: -14px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.2); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.link { color: var(--muted); }
.alert { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); color: #FFB1B1; border-radius: 16px; padding: 13px 16px; margin-bottom: 18px; font-size: 15px; }
.notice { background: rgba(255,194,61,.1); border: 1px solid rgba(255,194,61,.3); color: var(--gold); border-radius: 16px; padding: 13px 16px; margin-bottom: 18px; font-size: 15px; }
.forgot { margin-top: 22px; color: var(--muted); font-size: 14px; }
.forgot summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot p { margin-top: 10px; }
.auth-foot { margin-top: 40px; color: var(--muted); font-size: 12.5px; line-height: 1.6; text-align: center; opacity: .8; }

/* ---------- Set up ---------- */
ul.checks { list-style: none; padding: 0; margin: 0; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
ul.checks li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks small { color: var(--muted); }
ul.checks li > span { white-space: nowrap; font-size: 13.5px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); }
.errors { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.35); border-radius: 18px; padding: 14px 18px; margin: 20px 0; }
.errors ul { margin: 8px 0 0; padding-left: 20px; }
.radio { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; font-size: 16px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; margin-bottom: 10px; }
.radio:has(input:checked) { border-color: var(--accent); background: rgba(255,91,34,.07); }
.radio input { margin-top: 5px; accent-color: var(--accent); }
.radio:has(input:disabled) { opacity: .45; }
fieldset { border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; margin: 8px 0 0; }
legend { color: var(--muted); font-size: 13.5px; padding: 0 6px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .grid > span { display: none; } }
details { margin-top: 24px; color: var(--muted); }
details summary { cursor: pointer; color: var(--text); }
