:root {
  --bg: #02070d;
  --bg-deep: #01080b;
  --panel: rgba(12, 17, 22, 0.9);
  --panel-soft: rgba(18, 22, 27, 0.72);
  --line: rgba(188, 199, 214, 0.14);
  --text: #edf4ff;
  --muted: rgba(217, 226, 235, 0.72);
  --green: #41f3a3;
  --green-strong: #22d28d;
  --green-soft: rgba(65, 243, 163, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 35%, rgba(36, 235, 163, 0.15), transparent 23%),
    linear-gradient(180deg, #02070d 0%, #010a0e 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(173, 182, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 182, 196, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 8% 16%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 20% 28%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 35% 60%, rgba(255,255,255,0.72), transparent),
    radial-gradient(1.5px 1.5px at 62% 24%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 76% 74%, rgba(255,255,255,0.72), transparent),
    radial-gradient(2px 2px at 90% 42%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.5px 1.5px at 50% 86%, rgba(255,255,255,0.75), transparent);
  pointer-events: none;
  opacity: 0.75;
}

.page-shell {
  position: relative;
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 18px;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-size: 1.1rem;
}

.brand-mark {
  color: #f3e3ff;
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(213, 149, 255, 0.6));
}

.brand-text {
  font-size: 1.1rem;
}

.signup-panel {
  width: min(100%, 560px);
  margin: 24px auto 0;
  padding: 28px 28px 18px;
  border-radius: 28px;
  background: rgba(12, 16, 21, 0.8);
  border: 1px solid rgba(176, 189, 204, 0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 24px 42px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  letter-spacing: -0.065em;
  font-weight: 800;
  line-height: 1.1;
}

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group label,
.referral-header label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(222, 226, 236, 0.82);
}

.referral-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.optional {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(165, 180, 198, 0.12);
  border-radius: 14px;
  background: rgba(22, 30, 34, 0.6);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}

.input-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(65, 243, 163, 0.08);
  border: 1px solid rgba(65, 243, 163, 0.25);
}

input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  outline: none;
  padding: 14px 0;
}

input::placeholder {
  color: rgba(206, 216, 228, 0.9);
}

.profile-link {
  color: rgba(224, 234, 244, 0.8);
  font-size: 0.92rem;
  line-height: 1.2;
}

.profile-link span {
  color: var(--green);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  color: rgba(214, 225, 236, 0.82);
  font-size: 0.97rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  margin: 0;
}

.checkbox-row strong {
  font-weight: 700;
  color: #dffef0;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17, 24, 29, 0.72);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.02);
}

.captcha-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(235, 240, 245, 0.8);
  font-weight: 500;
}

.captcha-spinner {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 243, 163, 1) 0%, rgba(65, 243, 163, 0.4) 45%, transparent 100%);
  box-shadow: 0 0 12px rgba(65, 243, 163, 0.6);
}

.captcha-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(229, 235, 240, 0.9);
}

.captcha-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffb34d, #f57d1d);
  color: #1d1408;
  font-size: 0.84rem;
  font-weight: 800;
}

.captcha-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.captcha-text strong {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.captcha-text small {
  color: rgba(226, 230, 236, 0.7);
  font-size: 0.56rem;
}

.submit-btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #021911;
  min-height: 62px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(65, 243, 163, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible,
.input-wrap:focus-within,
button:hover {
  transform: translateY(-1px);
}

.signin-text {
  text-align: center;
  color: rgba(221, 232, 240, 0.8);
  font-size: 1rem;
  margin-top: 2px;
  margin-bottom: 6px;
}

.signin-text a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 620px) {
  .page-shell {
    padding-top: 14px;
  }

  .signup-panel {
    width: min(92%, 540px);
    margin-top: 20px;
    padding: 24px 18px 16px;
    border-radius: 20px;
  }

  .subtitle {
    font-size: 0.97rem;
  }

  .checkbox-row {
    font-size: 0.82rem;
  }

  .captcha-box {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
