:root {
  color-scheme: dark;
  font-family: Geist, Inter, system-ui, sans-serif;
  color: #f7f0e7;
  background: #151310;
  --muted: #c4b9ad;
  --orange: #ff9555;
  --line: #44372f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 24% 0%, #59301e 0%, transparent 42%),
    radial-gradient(ellipse at 100% 70%, #302119 0%, transparent 52%),
    #151310;
}

.shell {
  width: min(100% - 2rem, 30rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding-block: clamp(1.6rem, 6vh, 4rem) 1.6rem;
  gap: clamp(1.25rem, 5vh, 3rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
  justify-self: center;
}

.brand strong { color: var(--orange); font-weight: 650; }
.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border: .18rem solid var(--orange);
  border-radius: 56% 8% 54% 47%;
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 .21rem #151310;
  background: var(--orange);
}

.card {
  background: #211a16;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: clamp(1.2rem, 6vw, 2.5rem);
  box-shadow: 0 1.25rem 5rem #10070372;
}

h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 6vw, 2.3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

h1:focus { outline: none; }
p { margin: 0; color: var(--muted); line-height: 1.55; }
.account { margin-top: .6rem; color: #f6d2b8; overflow-wrap: anywhere; }
form { display: grid; gap: .65rem; margin-top: 1.65rem; }
label { font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: .78rem .85rem;
  color: inherit;
  background: #191411;
  border: 1px solid #604d41;
  border-radius: .65rem;
  min-height: 2.85rem;
}
input + label, #factor-choice + label { margin-top: .28rem; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
#code { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
#factor-choice label { display: block; margin-bottom: .45rem; }

button {
  border: 0;
  border-radius: .65rem;
  cursor: pointer;
  font-weight: 700;
  min-height: 2.65rem;
}
button:disabled { cursor: wait; opacity: .65; }
.primary {
  margin-top: .45rem;
  width: 100%;
  padding: .75rem .9rem;
  color: #2c160a;
  background: var(--orange);
}
.primary:hover:enabled { background: #ffad7c; }
.text-button {
  justify-self: start;
  padding: .4rem 0;
  color: #ffd0ab;
  background: transparent;
  text-align: left;
  font-size: .9rem;
}
.text-button:hover:enabled { text-decoration: underline; }
.standalone { margin-top: 1.4rem; }
.hint, .field-hint { font-size: .85rem; color: var(--muted); }
.hint { border-top: 1px solid var(--line); margin-top: 1.15rem; padding-top: 1rem; }

#enrollment { margin-top: 1.15rem; }
#qr {
  display: block;
  margin-inline: auto;
  padding: 10px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: .55rem;
  background: #fff;
}
details { margin-top: .8rem; color: var(--muted); font-size: .88rem; }
summary { cursor: pointer; }
details p { margin-top: .5rem; overflow-wrap: anywhere; }
.check {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: #57402e;
  color: #ffd0ae;
  font-size: 1.55rem;
}
.message { margin-top: 1rem; padding: .8rem; border-radius: .55rem; font-size: .9rem; }
.error { color: #ffe0d7; background: #522921; }
.status { color: #f1dac7; background: #3f2e21; }
footer { text-align: center; color: var(--muted); font-size: .82rem; }
