/* Hand-written rather than generated: two pages, no build step, and nothing to
   go stale against the templates. Dark by preference, light if that is what the
   device asks for — the page appears mid-login, so it should not flash white at
   somebody at night. */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #16161a;
  --muted: #5c5c66;
  --line: #dcdce4;
  --accent: #2f5fd8;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --panel: #17171d;
    --ink: #ececf1;
    --muted: #9a9aa8;
    --line: #2a2a34;
    --accent: #6f95ff;
    --accent-ink: #10101a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  width: 100%;
  max-width: 30rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  /* A self-registered client picks its own name, and a long one must not push
     the buttons off the page. */
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.who {
  color: var(--ink);
}

.scopes {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.scopes li {
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.deny {
  background: transparent;
  color: var(--ink);
}

.allow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
