
:root {
  --violet: #7931f5; --magenta: #b5179e; --pink: #ff1694; --sky: #4895ef; --lilac: #b06cff;
  --ground: #0b091d; --glass: rgba(22, 20, 36, .62); --line: rgba(255, 255, 255, .12);
  --text: #ecebf5; --muted: #b3aec8; --field: rgba(0, 0, 0, .32);
  --grad: linear-gradient(90deg, var(--pink), var(--violet));
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); }

html::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(circle at 22% 12%,#7931f5 0%,transparent 50%),radial-gradient(circle at 82% 88%,#ff1694 0%,transparent 50%),linear-gradient(150deg,#160a2e,#0a0712);
}
body {
  margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 24px 16px;
  color: var(--text); font: 15px/1.5 var(--sans);
  background: linear-gradient(180deg, rgba(11, 9, 29, .30), rgba(11, 9, 29, .65));
}

.card {
  width: 100%; max-width: 420px; padding: 30px 28px 26px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(121, 49, 245, .10);
}
.brand { margin: 0 0 22px; line-height: 1.15; }
.eyebrow { display: block; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wordmark {
  margin: 0; font-size: 26px; font-weight: 700; letter-spacing: .01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 22, 148, .28));
}
.wordmark .thin { font-weight: 400; }

p { margin: 0 0 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input, select {
  width: 100%; font: inherit; padding: 11px 12px; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus, select:focus { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(121, 49, 245, .35); }
select option { background: #1a1726; color: var(--text); }

button, .button {
  display: block; width: 100%; margin-top: 16px; padding: 12px 14px; font: inherit; font-weight: 600;
  text-align: center; text-decoration: none; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px;
}
button:hover, .button:hover { background: rgba(255, 255, 255, .10); }
.primary {
  color: #fff; border: 0; background: var(--grad);
  box-shadow: 0 0 20px rgba(181, 23, 158, .38);
}
.primary:hover { background: var(--grad); filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: default; }

.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.note:empty { display: none; }
.note { color: var(--text); }
.muted { color: var(--muted); }
.fine { margin: 20px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.fine a, .terms a { color: var(--lilac); text-decoration: none; }
.fine a:hover, .terms a:hover { text-decoration: underline; }


.card.terms { max-width: 720px; }
.terms .wordmark { font-size: 24px; line-height: 1.25; }
.terms .updated { margin: 6px 0 4px; font-size: 12.5px; color: var(--muted); }
.terms h2 { margin: 20px 0 6px; font-size: 16px; font-weight: 650; }
.terms p { line-height: 1.6; }
.terms section p:last-child { margin-bottom: 0; }


body.working::before {
  content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 40%;
  background: var(--grad); animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { body.working::before { animation: none; width: 100%; opacity: .6; } }

.spinner {
  width: 26px; height: 26px; margin: 6px auto 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--lilac); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


#recaptcha { position: absolute; width: 0; height: 0; }
