:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --green: #4ecdc4;
  --green-soft: #7db5b0;
  --text: #e0e0e0;
  --muted: #b3b3b3;
  --line: rgba(78, 205, 196, .22);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 36px 18px 24px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 44% 41% at 50% 34%, rgba(78, 205, 196, .09), transparent 100%),
    radial-gradient(ellipse 55% 35% at 50% 110%, rgba(125, 181, 176, .06), transparent 100%);
}
.wheel-backdrop {
  position: fixed;
  top: 50%; left: 50%;
  width: min(105vw, 900px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(78, 205, 196, .08);
  background: repeating-conic-gradient(from -5deg, rgba(78, 205, 196, .055) 0 1deg, transparent 1deg 30deg),
    radial-gradient(circle, transparent 0 31%, rgba(78, 205, 196, .04) 31.2% 31.5%, transparent 31.7% 62%, rgba(78, 205, 196, .05) 62.3% 62.6%, transparent 62.8%);
  mask-image: radial-gradient(circle, transparent 0 16%, black 17% 70%, transparent 85%);
  pointer-events: none;
  animation: wheel-drift 100s linear infinite;
}
@keyframes wheel-drift { to { transform: translate(-50%, -50%) rotate(360deg); } }
.shell { position: relative; z-index: 1; width: min(100%, 460px); }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 32px; }
.brand-mark { display: block; width: 47px; height: 47px; color: var(--green); filter: drop-shadow(0 0 11px rgba(78, 205, 196, .28)); }
.brand-name { margin: 0; color: var(--text); font-size: 2.45rem; font-weight: 700; line-height: 1; letter-spacing: -.075em; }
.brand-name span { color: var(--green); }
.card {
  position: relative;
  padding: 40px 38px 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 26, 26, .97), rgba(15, 15, 15, .97) 67%);
  box-shadow: 0 30px 85px rgba(0, 0, 0, .67), inset 0 1px 0 rgba(255, 255, 255, .055), 0 0 45px rgba(78, 205, 196, .045);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: card-glow 6s ease-in-out infinite alternate;
}
.card::before {
  content: '';
  position: absolute; top: -1px; left: 19%; right: 19%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .7;
}
@keyframes card-glow { to { box-shadow: 0 30px 85px rgba(0, 0, 0, .67), inset 0 1px 0 rgba(255, 255, 255, .055), 0 0 65px rgba(78, 205, 196, .09); } }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: .69rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tagline { margin: 0; color: #4ecdc4; font: 400 1.2rem/1.5 'JetBrains Mono', monospace; letter-spacing: normal; }
.intro { margin: 13px 0 28px; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.alerts { display: grid; gap: 9px; margin: 0 0 21px; }
.alert { padding: 12px 14px; border: 1px solid rgba(78, 205, 196, .3); border-radius: 10px; color: var(--text); background: rgba(78, 205, 196, .07); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.alert-error { border-color: rgba(239, 134, 108, .4); color: #f9bbaa; background: rgba(192, 75, 57, .12); }
.alert-success { border-color: rgba(125, 181, 176, .4); color: #b7e6e2; background: rgba(125, 181, 176, .1); }
.form { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { color: #e0e0e0; font-size: .78rem; font-weight: 600; }
.field-label em { float: right; font-style: normal; font-weight: 400; color: var(--muted); }
input[type='email'], input[type='password'], input[type='text'] {
  width: 100%; min-width: 0; min-height: 48px;
  padding: 12px 14px; outline: 0;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font: 400 .9rem 'Inter', system-ui, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #8a8a8a; opacity: 1; }
input:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px rgba(78, 205, 196, .16); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 75px; }
.pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: 0; border-radius: 6px; background: transparent; color: var(--green);
  padding: 7px 9px; font: 600 .74rem 'Inter', system-ui, sans-serif; cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: #fff; }
.meter { height: 3px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.meter i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s, background .2s; }
.hint { min-height: 14px; font-size: .74rem; color: var(--muted); }
.hint.ok { color: #b7e6e2; }
.hint.bad { color: #f9bbaa; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-box { padding: 10px 0 !important; min-height: 57px !important; text-align: center; font-size: 1.4rem !important; font-weight: 600 !important; font-variant-numeric: tabular-nums !important; color: var(--green) !important; caret-color: var(--green); }
.btn {
  width: 100%; min-height: 50px; margin-top: 8px; padding: 12px 16px;
  border: 1px solid var(--green); border-radius: 9px;
  background: #4ecdc4;
  box-shadow: 0 8px 24px rgba(78, 205, 196, .17);
  color: #0d0d0d; font: 700 .9rem 'Inter', system-ui, sans-serif;
  cursor: pointer; transition: transform .16s, box-shadow .2s, filter .2s;
}
.btn:hover { background: #3bb5ac; background: #3bb5ac; background: #3bb5ac; transform: translateY(-2px); box-shadow: 0 12px 31px rgba(78, 205, 196, .25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .pw-toggle:focus-visible, .link-btn:focus-visible, .switch a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.switch a, .resend button { color: var(--green); text-decoration: none; font-weight: 600; }
.switch a:hover, .resend button:hover { text-decoration: underline; text-underline-offset: 3px; }
.resend { margin-top: 18px; text-align: center; }
.link-btn { padding: 4px; border: 0; background: transparent; font: 600 .8rem 'Inter', system-ui, sans-serif; cursor: pointer; }
.foot { margin: 28px 0 0; text-align: center; color: #a3a3a3; font-size: .72rem; letter-spacing: .03em; }
@media (max-width: 480px) {
  body { padding: 25px 16px 22px; }
  .brand { margin-bottom: 26px; }
  .brand-name { font-size: 2.2rem; }
  .card { padding: 30px 23px 27px; }
  .tagline { margin: 0; color: #4ecdc4; font: 400 1.2rem/1.5 'JetBrains Mono', monospace; letter-spacing: normal; }
  .code-boxes { gap: 5px; }
}
@media (max-width: 340px) { .card { padding-inline: 16px; } .code-box { min-height: 50px !important; font-size: 1.1rem !important; } }
@media (prefers-reduced-motion: reduce) { .wheel-backdrop, .card { animation: none; } .btn, input { transition: none; } }
