:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: #101317;
  --panel-strong: #0b0e11;
  --line: #2a3037;
  --line-strong: #3b444d;
  --text: #f3f5f7;
  --muted: #8e98a5;
  --green: #43d45c;
  --green-strong: #56d364;
  --green-wash: rgba(67, 212, 92, .1);
  --danger: #ff737a;
  --warning: #e7b14f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(980px 620px at 8% 4%, rgba(67, 212, 92, .14), transparent 64%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; }

.signup-screen {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(67, 212, 92, .08), transparent 46%),
    radial-gradient(880px 520px at 14% 16%, rgba(67, 212, 92, .16), transparent 62%);
}

.signup-shell {
  width: min(1280px, calc(100% - 48px));
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
}

.signup-hero {
  min-height: 720px;
  padding: clamp(34px, 5vw, 58px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  background:
    linear-gradient(135deg, rgba(67, 212, 92, .12), transparent 46%),
    var(--panel);
}

.brand-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 144px; height: 58px; display: block; }

.experience-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(67, 212, 92, .46);
  padding: 0 9px;
  color: var(--green);
  background: var(--green-wash);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand:focus-visible,
.panel-foot a:focus-visible,
.action-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.intro { max-width: 690px; }

.eyebrow,
.card-head > p,
.success-panel > p {
  margin: 0 0 16px;
  color: var(--green);
  font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .17em;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.lead {
  margin: 25px 0 0;
  max-width: 650px;
  color: #aeb6c0;
  font-size: 16px;
  line-height: 1.85;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(16, 19, 23, .74);
}

.steps li { padding: 18px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps strong, .steps span { display: block; }
.steps strong { margin-bottom: 7px; font-size: 13px; }
.steps span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.notice {
  margin: 18px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--warning);
  color: #b8a47d;
  font-size: 12px;
  line-height: 1.65;
}

.signup-panel {
  min-height: 720px;
  padding: clamp(30px, 4.2vw, 54px);
  display: grid;
  place-items: center;
  background: var(--panel-strong);
}

.panel-inner { width: min(100%, 450px); }
.card-head { margin-bottom: 22px; }

.card-head h2,
.success-panel h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 34px);
  letter-spacing: -.025em;
}

.card-head span,
.success-panel > span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.65;
}

form { display: grid; gap: 9px; }

.registration-status {
  min-height: 44px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
  line-height: 1.5;
}

.registration-status.open { border-color: rgba(67, 212, 92, .42); color: var(--green); background: var(--green-wash); }
.registration-status.closed,
.registration-status.unavailable { border-color: rgba(231, 177, 79, .42); color: #d2b878; background: rgba(231, 177, 79, .07); }

.status-retry {
  min-height: 28px;
  flex: none;
  border-color: currentColor;
  padding: 0 10px;
  color: inherit;
  background: transparent;
  font-size: 12px;
}

.status-retry:hover { background: rgba(255, 255, 255, .06); }

.registration-fields {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  transition: opacity .16s ease;
}

.registration-fields:disabled { opacity: .54; }

label { margin-top: 4px; font-size: 13px; font-weight: 750; }

input,
button,
.action-link {
  min-height: 46px;
  border-radius: 0;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 0 14px;
  color: var(--text);
  background: #070a0d;
  outline: none;
}

input::placeholder { color: #68727d; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(67, 212, 92, .12); }

.code-row { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 10px; }

button,
.action-link {
  border: 1px solid transparent;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

button:disabled { cursor: wait; opacity: .58; }
.primary { color: #061007; background: var(--green); }
.primary:hover:not(:disabled) { background: var(--green-strong); }
.secondary { color: var(--green); border-color: rgba(67, 212, 92, .42); background: var(--green-wash); }
.secondary:hover:not(:disabled) { background: rgba(67, 212, 92, .17); }

#submitButton { width: 100%; margin-top: 10px; }

.form-message {
  min-height: 20px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-message.error { color: var(--danger); }
.form-message.success { color: var(--green); }

.panel-foot {
  margin: 17px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel-foot a { margin-left: 6px; color: var(--green); font-weight: 760; text-underline-offset: 5px; }
.success-panel { padding: 18px 0 8px; text-align: center; }

.success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  color: #061007;
  background: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.success-panel > span { margin: 18px auto 0; max-width: 390px; }
.action-link { width: 100%; margin-top: 28px; }

@media (max-width: 980px) {
  .signup-screen { padding: 16px; }
  .signup-shell { width: 100%; }
  .signup-layout { grid-template-columns: 1fr; }
  .signup-hero { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .signup-panel { min-height: auto; }
}

@media (max-width: 640px) {
  .signup-screen { padding: 0; place-items: stretch; }
  .signup-shell { border-right: 0; border-left: 0; }
  .signup-hero, .signup-panel { padding: 28px 20px; }
  .signup-hero { gap: 34px; }
  .brand-row { gap: 8px; }
  .brand img { width: 124px; height: 50px; }
  .experience-badge { display: none; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .lead { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .code-row { grid-template-columns: 1fr; }
  .code-row button { width: 100%; }
}
