:root {
  color-scheme: dark;
  --background: #080a0a;
  --surface: #101313;
  --surface-hover: #151918;
  --text: #f1f3ef;
  --muted: #89918d;
  --line: #282e2b;
  --accent: #c2f45b;
  --accent-ink: #111807;
  --error: #ff9c91;
  --error-bg: #291412;
  --success-bg: #15200e;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(194, 244, 91, 0.055), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.page-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 48px 24px;
}

.signup {
  width: min(100%, 480px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 25px;
  height: 25px;
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) { height: 9px; opacity: 0.45; }
.brand-mark i:nth-child(2) { height: 24px; }
.brand-mark i:nth-child(3) { height: 16px; opacity: 0.7; }

h1 {
  max-width: 470px;
  margin: 0 0 46px;
  font-size: clamp(38px, 6vw, 55px);
  font-weight: 510;
  line-height: 1.07;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.success-state {
  display: grid;
  min-height: 330px;
  align-content: center;
  justify-items: start;
  animation: success-in 420ms ease-out both;
}

.success-check {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(194, 244, 91, 0.07);
}

.success-check svg {
  width: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.success-check path {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: check-draw 480ms 180ms ease-out forwards;
}

.success-state h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 510;
  line-height: 1.05;
  letter-spacing: -0.052em;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.field {
  margin-bottom: 14px;
}

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

input {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: var(--muted);
}

input:hover {
  background: var(--surface-hover);
}

input:focus {
  border-color: #657c39;
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px rgba(194, 244, 91, 0.08);
}

input[aria-invalid="true"] {
  border-color: #a84b44;
}

.turnstile-wrap {
  min-height: 65px;
  margin: 20px 0 16px;
  overflow: hidden;
  border-radius: 8px;
}

.form-message {
  display: none;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.form-message.error,
.form-message.success {
  display: block;
}

.form-message.error {
  color: var(--error);
  background: var(--error-bg);
}

.form-message.success {
  color: var(--accent);
  background: var(--success-bg);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  transition: filter 160ms ease, transform 160ms ease;
}

button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(194, 244, 91, 0.28);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.62;
  transform: none;
}

button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 520px) {
  .page-shell {
    place-items: start center;
    padding: 58px 18px 36px;
  }

  .brand {
    margin-bottom: 34px;
  }

  h1 {
    margin-bottom: 36px;
    font-size: clamp(37px, 11vw, 48px);
  }
}

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

  .success-state,
  .success-check path {
    animation: none !important;
  }

  .success-check path {
    stroke-dashoffset: 0;
  }
}
