:root {
  color-scheme: dark;
  background: #121a21;
  color: #eff3ed;
  font: 16px/1.45 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at top, #29443d, #121a21 62%);
}

.access {
  width: min(100%, 28rem);
  padding: clamp(18px, 6vw, 30px);
  border: 1px solid #446059;
  border-radius: 18px;
  background: #18242b;
  box-shadow: 0 14px 45px #07121470;
}

.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.brand img { border: 1px solid #577c6c; border-radius: 13px; flex: 0 0 auto; }
.brand h1 { margin: 0; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.brand p, #code-help { margin: 3px 0 0; color: #b6c6c8; font-size: .85rem; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
button, input { width: 100%; min-height: 46px; border-radius: 9px; }
button { border: 1px solid #8dd1b1; background: #a8e4c6; color: #14322a; padding: 9px 12px; font-weight: 700; }
button:disabled { opacity: .59; cursor: default; }
button:not(:disabled):active { background: #8ecbb0; }
input { border: 1px solid #56736c; background: #111b22; color: #eff3ed; padding: 8px 11px; }
label { display: block; margin-bottom: 5px; font-weight: 650; }
details { margin-top: 13px; border-top: 1px solid #38514c; }
summary { padding-block: 11px; color: #bde5d0; }
form button { margin-top: 13px; }
button:focus-visible, input:focus-visible, summary:focus-visible, #access-status:focus-visible { outline: 2px solid #bde5d0; outline-offset: 3px; }
#access-status { margin: 14px 0 0; color: #c4dbd1; font-size: .91rem; overflow-wrap: anywhere; }
#access-status:empty { display: none; }
#access-status.is-error { color: #f7d1a4; }
