:root {
  color-scheme: light;
  --page: #f4f4f1;
  --text: #222623;
  --muted: #686e68;
  --focus: #24684f;
  --danger: #ad3029;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--page); }
.shell { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; }
.account-card { width: min(100%, 384px); }
.brand {
  width: fit-content; margin-bottom: 38px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(36px, 10vw, 44px); font-weight: 900;
  line-height: 1.1; letter-spacing: -.065em;
  transform: skewX(-8deg); transform-origin: left center;
}
h1 { margin: 0 0 28px; font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -.9px; }
#page-title:focus { outline: none; }
form { display: grid; gap: 9px; }
label { margin-top: 14px; font-size: 13px; font-weight: 600; line-height: 1.4; }
form > label:first-child { margin-top: 0; }
input, button, a { -webkit-tap-highlight-color: transparent; }
input {
  width: 100%; min-height: 50px; padding: 0 15px; border: 0; border-radius: 8px;
  color: var(--text); font: inherit; font-size: 15px;
  background: linear-gradient(180deg, #e8eae5 0%, #eff0ec 100%);
  box-shadow: inset 0 1px 3px #26332420, 0 1px 0 #ffffff;
  outline: none;
  transition: background 120ms ease, color 120ms ease;
}
input::placeholder { color: #7d827a; opacity: 1; font-size: 13px; }
input:hover { background: #e8eae4; }
input:focus-visible { color: #173c2d; background: #d6e6dc; }
input[aria-invalid="true"] { color: #8b201e; background: #f4dbd8; }
input[aria-invalid="true"]:focus-visible { background: #edc9c5; }
button, a { font: inherit; font-size: 13px; font-weight: 550; }
button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: none; color: #173c2d; background: #d6e6dc; }
button:disabled { cursor: default; color: #7e837c; }
.primary {
  min-height: 50px; margin-top: 20px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, #444d45, #2d352e);
  box-shadow: inset 0 1px 0 #ffffff36, 0 1px 1px #17261b38, 0 3px 5px #17261b14;
  transition: box-shadow 100ms ease, background 100ms ease;
}
.primary:not(:disabled):hover { background: linear-gradient(180deg, #505c52, #354239); }
.primary:not(:disabled):focus-visible { color: #fff; background: #3e6850; }
.primary:not(:disabled):active {
  background: #303b33;
  box-shadow: inset 0 2px 3px #10231658, 0 1px 0 #ffffff;
}
.primary:disabled { color: #8a8f86; background: #e0e3dc; box-shadow: inset 0 1px 0 #ffffffb3; }
.secondary, .text-action { background: transparent; color: var(--muted); box-shadow: none; }
.secondary:not(:disabled):hover, .text-action:not(:disabled):hover { color: var(--text); background: #e9ece5; }
.secondary:not(:disabled):active, .text-action:not(:disabled):active { color: var(--text); background: #dde2d8; }
.verification-target { margin: -12px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.verification-target strong { font-weight: 450; }
input[autocomplete="one-time-code"][maxlength="6"] { font-size: 22px; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.inline-actions { display: flex; justify-content: space-between; gap: 12px; }
.inline-actions > button:first-child { margin-left: -12px; }
.inline-actions > button:last-child { margin-right: -12px; }
.hint, .status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hint.consequence { margin: -12px 0 24px; }
#registration-entitlement { margin-top: 8px; }
#registration-entitlement + .primary { margin-top: 10px; }
.status:empty { display: none; }
.status:not(:empty) { margin-top: 12px; }
.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="success"] { color: var(--focus); }
.mode-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.mode-switch button { margin-left: -12px; }
a { color: var(--muted); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--text); text-decoration: underline; }
a:active { color: var(--focus); }
#completed-email { margin: -12px 0 20px; overflow-wrap: anywhere; font-size: 15px; }
#completed-next-step { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
input[type="radio"] { width: 18px; min-height: 18px; padding: 0; accent-color: var(--focus); }
@media (max-width: 480px) {
  .shell { padding: 40px 28px; }
  .brand { margin-bottom: 30px; }
  h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { input, .primary { transition: none; } }
@media (forced-colors: active) {
  input, .primary { border: 1px solid ButtonText; box-shadow: none; }
  input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid Highlight; }
}
