/* SPDX-License-Identifier: AGPL-3.0-only */
/* The broker's own terminal pages (sign-in, how to open a session), served as /_rt.css on the terminal hosts.
   Light by default, dark when the system asks for it. */
:root {
  color-scheme: light dark;
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #eaeff5; --text: #16202a; --muted: #4b5b6b;
  --border: #c9d3de; --accent: #0b5cad; --accent-text: #ffffff; --link: #0a58a6; --focus: #b35c00;
  --radius: 10px;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151d; --surface: #16202b; --surface-2: #1e2a37; --text: #e6edf3; --muted: #a8b6c4;
    --border: #344658; --accent: #8cc4ff; --accent-text: #0a1b2c; --link: #9ccdff; --focus: #f7c65b;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
p { overflow-wrap: anywhere; }
code { font: .92em/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }

header.shell { display: flex; align-items: center; gap: .5rem 1.25rem; padding: .75rem max(1rem, calc((100% - 1040px) / 2));
  background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
.mark { font: 700 .8rem/1 ui-monospace, monospace; background: var(--text); color: var(--surface); border-radius: 6px; padding: .35rem .4rem; }

main { max-width: 1040px; margin: auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.25rem; }
.page { max-width: 34rem; margin: 2.5rem auto; }
.page form { margin-top: 1rem; }

label { display: block; margin: .8rem 0; }
input { display: block; background: var(--surface); color: inherit; border: 1px solid var(--muted); border-radius: 6px;
  font: inherit; padding: .5rem; max-width: 100%; width: 30rem; margin-top: .25rem; }
button { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: inherit;
  padding: .5rem .9rem; cursor: pointer; margin: .4rem .5rem .4rem 0; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
  header.shell { padding: .6rem 1rem; }
  main { padding: 1rem 1rem 2.5rem; }
  .panel { padding: 1rem; }
  h1 { font-size: 1.55rem; }
  input { width: 100%; }
}
