:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #101010;
  color: #dedede;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 240px; min-height: 100%; }
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(ellipse at 50% 44%, #1a1a1a 0%, #131313 38%, #101010 76%);
}
main { width: min(100%, 312px); transform: translateY(-3vh); }
form { display: grid; gap: 14px; margin: 0; }
[hidden] { display: none !important; }
input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid #494949;
  border-radius: 5px;
  outline: none;
  background: #202020;
  color: #dedede;
  caret-color: #dedede;
  font: inherit;
  font-size: 17px;
  line-height: normal;
  box-shadow: 0 1px 0 #ffffff03 inset, 0 8px 25px #00000012;
  transition: border-color 160ms, background-color 160ms, box-shadow 160ms, opacity 160ms;
}
input:hover { border-color: #626262; }
input:focus { border-color: #b6b6b6; background: #242424; box-shadow: 0 0 0 2px #ffffff0b; }
input[aria-invalid="true"] { border-color: #bcbcbc; box-shadow: 0 0 0 2px #ffffff13; }
input:disabled { opacity: .45; cursor: wait; }
input::selection { color: #f1f1f1; background: #555555; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #dedede;
  -webkit-box-shadow: 0 0 0 100px #242424 inset;
  caret-color: #dedede;
}
fieldset { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
input.code { padding: 0; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
main[data-error="true"] form:not([hidden]) { animation: nudge 220ms ease-in-out; }
main[aria-busy="true"] input { animation: breathe 1200ms ease-in-out infinite alternate; }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes breathe { to { opacity: .35; } }
@media (max-width: 360px) { body { padding: 20px; } fieldset { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
