
:root {
  color-scheme: dark;
  font-family: Helvetica, Arial, sans-serif;
  background: #0d0d0f;
  color: #f1f1ef;
  --surface: #17171a;
  --line: #414149;
  --muted: #aeafb8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.top {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-bottom: 1px solid #27272d;
  padding: 14px 20px;
}
.top img { display: block; width: 128px; height: auto; }
main { width: min(calc(100% - 32px), 432px); margin: clamp(30px, 7vh, 72px) auto 24px; }
.card {
  text-align: center;
  background: var(--surface);
  border: 1px solid #35353d;
  border-radius: 27px;
  padding: clamp(20px, 5vw, 30px);
}
h1 {
  font-size: clamp(32px, 7.5vw, 44px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.06;
  margin: 0 0 10px;
}
p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0 0 20px; overflow-wrap: anywhere; }
form { display: grid; gap: 9px; }
#access-denied { display: grid; gap: 9px; }
#access-verification { display: flex; justify-content: center; }
input, button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.email-control { position: relative; }
#email {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #111114;
  color: inherit;
  font-size: 16px;
  padding: 0 38px;
  text-align: center;
}
#email::placeholder { color: #9a9aa4; }
#email:focus-visible { outline: 1px solid #8a8a92; outline-offset: 1px; }
#email:-webkit-autofill { -webkit-text-fill-color: #f1f1ef; box-shadow: inset 0 0 0 1000px #111114; }
.email-status {
  position: absolute;
  inset-inline-end: 13px;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: status-in .2s ease-out both;
}
.email-status svg { width: 18px; height: 18px; }
[data-email-error] { color: #ff8983; }
[data-email-valid] { color: #87d9aa; }
@keyframes status-in {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}
.primary, .secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.primary { background: #f1f1ef; color: #111114; }
.primary:disabled { opacity: .48; cursor: default; }
.primary[aria-busy="true"] { opacity: .85; }
.primary[aria-busy="true"]::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-inline-end: 8px;
  border: 1.5px solid #8a8a90;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: access-spin .75s linear infinite;
}
@keyframes access-spin { to { transform: rotate(360deg); } }
.secondary { background: #222226; color: #d2d2d8; border-color: #35353d; font-weight: 500; }
.secondary:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 2px solid #f1f1ef; outline-offset: 3px; }
.code-control { position: relative; }
.code-control input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; opacity: 0; font-size: 16px; cursor: text; }
.code-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1.8vw, 8px); }
.code-cells span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: clamp(8px, 3vw, 14px);
  background: #111114;
  font-size: clamp(19px, 5vw, 26px);
  font-weight: 600;
}
.code-control:focus-within span[data-active] { border-color: #e7e7e7; box-shadow: inset 0 0 0 1px #e7e7e7; }
.text-button { min-height: 32px; margin: 0 auto; padding: 4px 8px; border: 0; color: #c4c4cc; background: none; font-size: 13px; cursor: pointer; }
.text-button:disabled { opacity: .65; cursor: default; }
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid #35353d;
  border-radius: 999px;
  color: #d2d2d8;
  font-size: 13px;
  text-decoration: none;
}
.support-link:hover { background: #222226; }
.code-help { margin: 8px 0 0; font-size: 13px; }
footer { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; color: var(--muted); font-size: 13px; }
footer a { padding: 7px 0; text-underline-offset: 3px; }
.error { font-size: 13px; margin: 0; color: #ffbeb9; }
#feedback { margin-top: 12px; }
#feedback:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .email-status, .primary[aria-busy="true"]::before { animation: none; }
}
