* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --auth-bg: #f8fafc;
  --auth-card: #ffffff;
  --auth-line: #e2e8f0;
  --auth-blue: #2563eb;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
}
html { min-height: 100%; background: var(--auth-bg); }
body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
  color: var(--auth-text);
  background: radial-gradient(ellipse at 18% 12%, rgba(37,99,235,.07), transparent 38%), radial-gradient(ellipse at 87% 87%, rgba(124,58,237,.05), transparent 36%), var(--auth-bg);
  font: 15px/1.5 Inter, system-ui, sans-serif;
}
a { color: #2563eb; }
.registration-shell { width: min(100% - 32px, 472px); margin: auto; padding: 18px 0; }
.brand { display: flex; justify-content: center; align-items: center; width: fit-content; margin: 0 auto 27px; text-decoration: none; }
.brand img { display: block; width: min(190px, 55vw); height: auto; }
.registration-card {
  min-width: 0;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: var(--auth-card);
  box-shadow: 0 20px 40px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  text-align: center;
}
.steps, .verification-art, .footnote { display: none !important; }
.steps { justify-content: center; align-items: center; gap: clamp(8px, 2vw, 16px); margin: 0 auto 24px; color: var(--auth-muted); white-space: nowrap; }
.steps span { display: flex; align-items: center; gap: 8px; }
.steps b { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 12px; }
.steps .active { color: #0f172a; font-weight: 650; }
.steps .active b { background: var(--auth-blue); color: #fff; }
.steps #securityStep::after { content: ""; display: block; width: clamp(20px, 4vw, 48px); height: 1px; margin-left: 10px; background: #e2e8f0; }
.verification-art { justify-content: center; align-items: center; margin: 0 auto 16px; }
.verification-lock { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1px solid #dbeafe; border-radius: 20px; background: #eff6ff; }
.verification-lock svg { width: 34px; height: 34px; }
.verification-lock svg rect { fill: #dbeafe !important; stroke: #2563eb !important; }
.verification-lock svg path, .verification-lock svg circle { stroke: #2563eb !important; }
.verification-lock svg circle { fill: #2563eb !important; }
.registration-card:has(#registrationForm:not([hidden])) .verification-art { display: none; }
h1 { margin: 0; color: var(--auth-text); font-size: clamp(25px, 3.2vw, 32px); font-weight: 730; line-height: 1.2; letter-spacing: -.04em; }
p { color: var(--auth-muted); }
#stepDescription { margin: 9px 0 22px; font-size: clamp(13px, 1.4vw, 15px); }
.account-email { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 9px 15px; border: 1px solid #dbeafe; border-radius: 30px; background: #eff6ff; color: #1d4ed8; font-weight: 600; font-size: clamp(12px, 1.3vw, 14px); overflow-wrap: anywhere; }
.account-email:empty, #registrationMessage:empty, #registrationChallenge:empty { display: none; }
.account-email::before { content: "✉"; color: #2563eb; font-size: 1.1em; }
#registrationChallenge { min-height: 65px; max-width: 100%; overflow: hidden; margin-bottom: 12px; }
#registrationMessage { margin: 16px 0; color: var(--auth-muted); font-size: clamp(12px, 1.2vw, 14px); overflow-wrap: anywhere; }
#registrationMessage[data-error] { padding: 12px 15px; border: 1px solid #fecaca; border-radius: 11px; background: #fef2f2; color: #dc2626; font-weight: 600; }
#registrationMessage[data-error]::before { content: "!"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; line-height: 1; vertical-align: middle; }
form { text-align: left; }
form > label { display: block; margin: 14px 0; color: #334155; font-size: 13px; font-weight: 600; }
input:not([type=checkbox]), select { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #ffffff; color: #0f172a; font: inherit; }
input::placeholder { color: #94a3b8; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 1px; border-color: #2563eb; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; font-weight: 450; line-height: 1.6; color: #475569; }
.check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; accent-color: #2563eb; }
.check small { display: block; color: #64748b; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 49px; padding: 12px 18px; border: 1px solid #2563eb; border-radius: 11px; background: linear-gradient(115deg, #2563eb, #1d4ed8 67%, #0284c7); box-shadow: 0 4px 14px rgba(37,99,235,.22); color: #fff; font: 650 clamp(14px, 1.4vw, 15px) Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(115deg, #1d4ed8, #1e40af 67%, #0369a1); box-shadow: 0 6px 18px rgba(37,99,235,.28); }
button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.google-badge { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.google-badge svg { width: 18px; height: 18px; stroke: none; fill: none; }
button:disabled { opacity: .58; cursor: wait; transform: none; }
.secondary { display: inline-flex; width: auto; min-height: 36px; margin: 12px auto 0; padding: 6px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #ffffff; box-shadow: none; color: #334155; font-size: 12px; font-weight: 500; cursor: pointer; }
.secondary:hover:not(:disabled) { border-color: #94a3b8; background: #f8fafc; color: #0f172a; box-shadow: none; }
.secondary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
#retrySecurity { width: auto; min-height: 42px; margin: 12px auto; padding: 8px 20px; font-size: 13px; }
.footnote { margin: 20px 0 0; font-size: clamp(12px, 1.1vw, 14px); text-align: center; color: var(--auth-muted); }
.auth-legal { margin: 22px 0 0; color: #64748b; font-size: 11px; line-height: 1.6; text-align: center; }
.auth-legal a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: #1d4ed8; }
[hidden] { display: none !important; }
@media(max-width: 540px) { body { padding: 16px 0; }.registration-shell { width: calc(100% - 24px); padding: 10px 0; }.brand { margin-bottom: 20px; }.brand img { width: min(168px, 55vw); }.registration-card { border-radius: 17px; padding: 22px 17px; }.steps { margin-bottom: 16px; } }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
