:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  --ink: #192e2c;
  --accent: #11644c;
  --paper: #f5f7ed;
  --white: #fff;
  --border: #cbd9cc;
  --muted: #50665d;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #027855;
  outline-offset: 3px;
}
.top { max-width: 970px; padding: 23px clamp(18px, 5vw, 44px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.06rem; font-weight: 750; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: white; }
.auth-layout { max-width: 970px; padding: clamp(20px, 5vw, 54px) clamp(18px, 5vw, 44px) 42px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr); align-items: start; gap: clamp(24px, 6vw, 68px); }
.auth-intro { border-top: 2px solid var(--accent); padding-top: 17px; }
.context { color: var(--accent); margin-top: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.01; margin: .43em 0 .37em; max-width: 12ch; }
h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .45em; }
p { margin: .55em 0; }
.auth-intro p:last-child { color: var(--muted); max-width: 31ch; }
.auth-panel { border: 1px solid var(--border); border-radius: 18px; background: var(--white); padding: clamp(20px, 4vw, 32px); }
form { display: grid; gap: 8px; margin-top: 20px; }
label { font-size: .94rem; font-weight: 700; margin-top: 4px; }
input, button { font: inherit; }
input { min-width: 0; min-height: 47px; padding: 8px 12px; border: 1px solid #8ca399; border-radius: 8px; color: var(--ink); }
.pin-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
#auth-pin { letter-spacing: .17em; }
button, .primary-link { min-height: 44px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: #fff; color: var(--accent); font-weight: 700; padding: 8px 12px; }
button:disabled { opacity: .55; cursor: wait; }
.primary, .primary-link { background: var(--accent); border-color: var(--accent); color: white; margin-top: 6px; }
.primary-link { display: inline-block; text-decoration: none; }
.quiet { border-color: transparent; text-decoration: underline; text-underline-offset: .16em; }
.hint, .reset-note, .footer-links { color: var(--muted); font-size: .89rem; }
.hint { margin: 0 0 4px; }
.reset-note { margin: 12px 0 0; }
.reset-note summary { cursor: pointer; font-weight: 650; }
.footer-links { border-top: 1px solid var(--border); padding-top: 14px; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 9px 16px; }
.status { background: #eff7f0; border-left: 3px solid #167154; padding: 9px 11px; font-size: .93rem; }
.status.error { background: #fff2ed; border-color: #ad472d; color: #812b18; }
.adult-check { display: flex; align-items: center; gap: 9px; }
.adult-check input { min-height: auto; accent-color: var(--accent); }
@media (max-width: 690px) {
  .auth-layout { grid-template-columns: 1fr; }
  h1 { max-width: 20ch; }
}
