/* One shared visual language: quiet, typographic, dark and light from the
   same tokens. Change the tokens, not the rules. */

:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #69707d;
  --line: #e3e5e8;
  --accent: #2563eb;
  --danger: #b42318;
  --ok: #067647;
  --radius: 6px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --fg: #e8eaed;
    --muted: #8f96a3;
    --line: #26282d;
    --accent: #60a5fa;
    --danger: #f97066;
    --ok: #47cd89;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

h1 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.25rem; }
h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
     letter-spacing: 0.06em; color: var(--muted); margin: 2.25rem 0 0.5rem; }
p  { margin: 0.5rem 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.error { color: var(--danger); }
.ok    { color: var(--ok); }

code, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
}
code { overflow-wrap: anywhere; }

button {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
button.danger:hover { border-color: var(--danger); color: var(--danger); }
button:disabled { opacity: 0.5; cursor: default; }

input[type="text"] {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  min-height: 2.25rem;
}
input[type="text"]:focus { outline: none; border-color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin-top: 0.25rem; }
th, td { text-align: left; padding: 0.4rem 0.6rem 0.4rem 0;
         border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child { white-space: normal; }
th { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.table-wrap { width: 100%; overflow-x: auto; }

.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row input[type="text"] { flex: 1 1 8rem; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* The sign-in choices: a narrow column of full-width provider buttons. */
.signin {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin-top: 0.25rem;
}
.signin > button { width: 100%; }

button.provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
}

svg.icon { width: 1.15rem; height: 1.15rem; flex: none; }

.identity { display: flex; align-items: center; gap: 0.5rem; }

.device-code {
  font-family: var(--mono);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  user-select: all;
}
