:root {
  color-scheme: dark;
  --bg: #0f0e0d;
  --surface: #161717;
  --surface-strong: #141311;
  --hover-surface: #23211d;
  --soft: rgba(255, 255, 255, .04);
  --soft-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --line: rgba(255, 255, 255, .10);
  --text: #fff;
  --text-soft: rgba(255, 255, 255, .72);
  --text-subtle: rgba(255, 255, 255, .62);
  --text-muted: #8f8b85;
  --body-muted: #b2ada6;
  --link-muted: #d0d0d0;
  --eyebrow: #8a8f98;
  --accent: #2932ff;
  --success: #49de80;
  --danger: #ff6b61;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-card-strong: 0 18px 55px rgba(0, 0, 0, .75);
  --radius-card: 16px;
  --radius-field: 10px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wordmark: "halcom", var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  background: radial-gradient(60% 45% at 50% -10%, rgba(255, 176, 92, .10), transparent 70%);
}

body::after {
  background: radial-gradient(45% 40% at 85% 110%, rgba(83, 91, 255, .08), transparent 70%);
}

h1,
p {
  margin-top: 0;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  color: var(--text);
  font: 700 1.25rem/1 var(--font-wordmark);
  letter-spacing: -.01em;
  text-decoration: none;
}

.page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px 20px 48px;
  gap: 28px;
  grid-auto-rows: max-content;
  align-content: center;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card--wide {
  max-width: 520px;
}

.card--center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--eyebrow);
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1.title {
  margin: 0 0 10px;
  color: var(--text);
  font: 300 2.125rem/1.12 var(--font-serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 26px;
  color: var(--body-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

.form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--text-soft);
  font: 500 13px/1.3 var(--font-sans);
}

.hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.field-error {
  margin: 0;
  color: #ffb4ad;
  font-size: 12.5px;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-field);
  color: var(--text);
  font: 400 15px var(--font-sans);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.input:hover {
  border-color: rgba(255, 255, 255, .2);
}

.input:focus-visible {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.input[aria-invalid="true"] {
  border-color: rgba(255, 107, 97, .6);
}

.input[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 107, 97, .18);
}

select.input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='rgba(255,255,255,.55)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select.input option {
  background: var(--surface-strong);
  color: var(--text);
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1c1d1d inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 64px;
}

.toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 12px;
  background: none;
  border: 0;
  color: var(--link-muted);
  cursor: pointer;
  font: 500 12.5px/1 var(--font-sans);
}

.toggle:hover {
  color: #fff;
}

.input--code {
  height: 52px;
  font: 500 20px/1 var(--font-mono);
  letter-spacing: .28em;
  text-align: center;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--text);
  cursor: pointer;
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  transition: background-color .2s cubic-bezier(.4, 0, .2, 1), border-color .2s, color .2s, transform .08s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: #fff;
  color: #101010;
}

.btn--primary:hover {
  background: #e9e6e1;
}

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--soft-strong);
}

.btn--text {
  min-height: 36px;
  padding: 0 8px;
  background: none;
  border: 0;
  color: var(--link-muted);
}

.btn--text:hover {
  color: #fff;
}

.btn[aria-busy="true"]::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  content: "";
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card a:not(.btn) {
  color: var(--link-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
}

.card a:not(.btn):hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.aux {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
}

.divider {
  margin: 22px 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
}

.alert {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-field);
  font-size: 14px;
  line-height: 1.5;
}

.alert--error {
  background: rgba(255, 107, 97, .08);
  border-color: rgba(255, 107, 97, .28);
  color: #ffb4ad;
}

.alert--success {
  background: rgba(73, 222, 128, .08);
  border-color: rgba(73, 222, 128, .3);
  color: #a6ecbc;
}

.alert--info {
  background: var(--soft);
  border-color: var(--border);
  color: var(--text-soft);
}

.alert .inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
}

.alert .inline-actions .btn {
  min-height: 36px;
  padding: 0 14px;
}

details.more {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link-muted);
  cursor: pointer;
  font: 500 13.5px var(--font-sans);
  list-style: none;
}

summary::before {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform .15s;
}

details[open] > summary::before {
  transform: rotate(45deg) translate(-1px, -1px);
}

summary::-webkit-details-marker {
  display: none;
}

.more > .form {
  margin-top: 16px;
}

.orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  background: radial-gradient(circle at 32% 30%, #f8dc7a 0%, #efc46a 22%, #b6a8f2 58%, #7d86ff 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 40px rgba(125, 134, 255, .25);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    filter: saturate(1.08);
    transform: scale(1.04);
  }
}

.state-note {
  margin: -10px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.card--center .state-note {
  margin-top: 18px;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .7);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  h1.title {
    font-size: 2.375rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }

  .row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
