:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #e9edf7;
  background: #0b1020;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, #22366c 0, transparent 38rem), #0b1020;
}

main {
  width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  margin-top: 0;
}

p {
  max-width: 65ch;
  line-height: 1.65;
}

.eyebrow {
  color: #9eb8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

section {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #31446f;
  border-radius: 1rem;
  background: rgb(17 25 48 / 82%);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

button,
a {
  color: inherit;
}

button {
  padding: 0.7rem 1rem;
  border: 1px solid #6885cf;
  border-radius: 0.6rem;
  background: #1a2c58;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible {
  background: #294584;
}

input {
  display: block;
  width: min(12rem, 100%);
  margin: 0.5rem 0 1rem;
  padding: 0.65rem;
  border: 1px solid #6885cf;
  border-radius: 0.5rem;
  background: #070b16;
  color: inherit;
  font: inherit;
}

#totp-enrollment {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #31446f;
}

#totp-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 1rem 0;
  border: 0.75rem solid white;
  background: white;
}

#totp-qr[hidden],
#totp-enrollment[hidden] {
  display: none;
}

#auth-status[data-state="error"] {
  color: #ffb4ad;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.65rem;
  background: #070b16;
  white-space: pre-wrap;
}

.note {
  color: #b9c4dd;
  font-size: 0.9rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

a:focus-visible,
a:hover {
  color: #b8caff;
}
