/* NETWORK XXIII central login. Raza skin of NetWorkXXIII.de, self-contained: fonts and logo are served from
   /static (CSP: style-src/font-src/img-src 'self'), no scripts, no inline styles, no external resources. */
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/chakra-petch-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/chakra-petch-700.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(fonts/outfit-variable.woff2) format("woff2"); }
@font-face { font-family: "Share Tech Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/share-tech-mono.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/roboto-500.woff2) format("woff2"); } /* Google button; Roboto (Apache 2.0), latin subset from @fontsource/roboto 5.1.0 */

:root {
  color-scheme: dark;
  --brand: #cd2127;
  --bg: #09090b;
  --bg2: #0e0e11;
  --panel: #131316;
  --line: #2a2a30;
  --line-hi: #3a3a42;
  --fg: #d4d4d8;
  --muted: #9696a2;
  --accent: #9fb0c4;
  --accent-ink: #0a0d12;
  --ok: #5ad0a0;
  --down: #e5484d;
  --panel-grad: linear-gradient(180deg, #17171b 0%, #111114 100%);
  --display: "Chakra Petch", "Trebuchet MS", Arial, sans-serif;
  --body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Share Tech Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font: 300 16px/1.55 var(--body); color: var(--fg);
  /* the station backdrop: a faint grid, a red horizon glow, scanlines */
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(90% 55% at 50% 0%, rgba(205, 33, 39, .10) 0%, transparent 70%),
    linear-gradient(rgba(159, 176, 196, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(159, 176, 196, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
strong { font-weight: 600; color: #fff; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: rgba(14, 14, 17, .88); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; max-width: 1180px; margin: 0 auto; }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; display: block; }
.station-id { font: 400 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.station-id b { display: block; font-weight: 400; color: var(--fg); }
.station-id .live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); vertical-align: 1px; }

/* ---------- the console panel ---------- */
.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(28px, 8vh, 88px) 16px 40px; }
main {
  position: relative; width: 100%; max-width: 440px;
  background: var(--panel-grad); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  padding: 30px 32px 26px;
}
main.wide { max-width: 600px; }
/* red signal bar with a moving-nothing "tuning" notch, plus corner brackets */
main::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 70%, transparent 70% 72%, var(--brand) 72% 86%, transparent 86% 88%, var(--brand) 88%); }
main::after { content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--line-hi), var(--line-hi)) left top / 14px 1px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) left top / 1px 14px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) right bottom / 1px 14px no-repeat; }

.eyebrow { margin: 0 0 10px; font: 400 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: "▮ "; color: var(--brand); }
h1 { margin: 0 0 14px; font: 700 30px/1.1 var(--display); letter-spacing: .01em; color: #fff; text-wrap: balance; }
h2 { margin: 0 0 10px; font: 600 15px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
p { margin: 0 0 14px; }
.small { font-size: 14px; color: var(--muted); }
code, .key { font-family: var(--mono); }

/* "to continue to Edict" */
.for { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 20px; color: var(--muted); font-size: 15px; }
.for strong { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
  border: 1px solid var(--line-hi); background: var(--bg2); padding: 6px 9px; }

/* ---------- forms ---------- */
form { margin: 0; }
label { display: block; margin: 0 0 16px; font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input[type=email], input[type=password], input[type=text] {
  display: block; width: 100%; margin-top: 7px; padding: 11px 12px; min-height: 46px;
  background: #070708; color: #fff; border: 1px solid var(--line); border-radius: 0;
  font: 400 16px/1.3 var(--body); letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .6); transition: border-color .15s, box-shadow .15s; }
input[inputmode=numeric] { font-family: var(--mono); font-size: 20px; letter-spacing: .3em; }
input:hover { border-color: var(--line-hi); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(159, 176, 196, .18); }
input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #101114 inset; caret-color: #fff; }
label.check { display: flex; gap: 10px; align-items: center; font: 300 15px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--fg); cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

button, .button {
  display: block; width: 100%; min-height: 46px; margin: 6px 0 12px; padding: 12px 14px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: 700 14px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
button:hover, .button:hover { background: #b9c7d7; border-color: #b9c7d7; text-decoration: none; }
button::after, .button::after { content: "  ▸"; }
button.secondary { background: transparent; color: var(--fg); border-color: var(--line-hi); }
button.secondary:hover { border-color: var(--accent); color: #fff; background: rgba(159, 176, 196, .06); }
button.danger { background: transparent; color: var(--down); border-color: #5a1d20; }
button.danger:hover { background: rgba(229, 72, 77, .08); border-color: var(--down); }
button.secondary::after, button.danger::after { content: none; }
.button.secondary { background: transparent; color: var(--fg); border-color: var(--line-hi); }
.button.secondary:hover { border-color: var(--accent); color: #fff; background: rgba(159, 176, 196, .06); }
.button.secondary::after { content: none; }

.alt { margin: 18px 0 4px; text-align: center; }
.alt p { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.alt p::before, .alt p::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- external providers (brand guidelines) ---------- */
/* Google: dark theme (fill #131314, 1px stroke #8E918F, text #E3E3E3, 14/20 Roboto Medium, 20px "G", 12px/10px spacing).
   Twitch: Twitch purple #9146FF with the white Glitch. Both keep their own colours in every skin and in forced colours. */
button.provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 9px 12px;
  border-radius: 4px; font: 500 14px/20px "Roboto", "Segoe UI", Arial, sans-serif; letter-spacing: .25px; text-transform: none;
  forced-color-adjust: none; }
button.provider::after { content: none; }
button.provider img { flex: none; width: 20px; height: 20px; }
button.provider-google { background: #131314; color: #e3e3e3; border: 1px solid #8e918f; }
button.provider-google:hover { background: #2a2a2b; border-color: #8e918f; }
button.provider-twitch { background: #9146ff; color: #fff; border: 1px solid #9146ff; }
button.provider-twitch:hover { background: #772ce8; border-color: #772ce8; }

/* ---------- messages ---------- */
.error, .notice { position: relative; margin: 0 0 18px; padding: 11px 14px 11px 40px; font-size: 15px; border: 1px solid; }
.error { color: #ffd9da; background: rgba(229, 72, 77, .09); border-color: rgba(229, 72, 77, .45); }
.notice { color: #d4f5e6; background: rgba(90, 208, 160, .08); border-color: rgba(90, 208, 160, .4); }
.error::before, .notice::before { position: absolute; left: 14px; top: 11px; font: 700 14px/1.55 var(--mono); }
.error::before { content: "!"; color: var(--down); }
.notice::before { content: "✓"; color: var(--ok); }

/* ---------- account page ---------- */
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 4px 0 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
dt, dd { padding: 10px 14px; border-top: 1px solid var(--line); }
dt:first-of-type, dd:first-of-type { border-top: 0; }
dt { font: 400 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; color: #fff; }
section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
section form + form { margin-top: 4px; }
.state { display: inline-block; margin-right: 8px; padding: 2px 7px; font: 700 11px/1.5 var(--display); letter-spacing: .14em; text-transform: uppercase; vertical-align: 1px; }
.state.on { color: var(--ok); background: rgba(90, 208, 160, .14); }
.state.off { color: var(--muted); background: rgba(150, 150, 162, .14); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row button { width: auto; margin: 0; min-height: 38px; padding: 8px 14px; }
.codes { padding: 18px 18px 6px; margin-top: 22px; border: 1px solid rgba(224, 176, 74, .45); background: rgba(224, 176, 74, .06); }
.codes h2 { color: #f0c66d; }
.codes ul { columns: 2; gap: 24px; padding: 0; margin: 0 0 14px; list-style: none; }
.codes li { padding: 3px 0; }
.codes code { font-size: 17px; letter-spacing: .08em; color: #fff; }
@media (min-width: 560px) {
  .sessions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .sessions h2 { grid-column: 1 / -1; }
  .sessions form { display: flex; margin: 0; }
  .sessions button { margin: 6px 0 4px; }
}

/* ---------- authenticator setup ---------- */
ol { margin: 0 0 18px; padding-left: 22px; }
ol li { margin-bottom: 12px; padding-left: 4px; }
ol li::marker { font-family: var(--mono); color: var(--accent); }
.qr img { display: block; margin: 14px 0; background: #fff; padding: 10px; }
.key code { display: inline-block; padding: 8px 12px; font-size: 18px; letter-spacing: .1em; color: #fff; background: #070708; border: 1px solid var(--line); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 14px 20px 18px;
  font: 400 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

@media (max-width: 520px) {
  .top .wrap { padding: 8px 14px; }
  .brand img { height: 32px; }
  .station-id { font-size: 11px; letter-spacing: .12em; }
  .stage { padding: 20px 10px 28px; }
  main { padding: 24px 20px 20px; }
  main::after { display: none; }
  h1 { font-size: 26px; }
  .codes ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (forced-colors: active) { main::before, main::after, .eyebrow::before { display: none; } button, .button { border: 1px solid ButtonText; } }
