:root {
  --bg-1: #0b0d10;
  --bg-2: #121418;
  --bg-3: #1a1d22;
  --surface: rgba(12, 14, 18, 0.72);
  --surface-inner: rgba(8, 10, 13, 0.7);
  --text: #e7e7e7;
  --muted: rgba(231, 231, 231, 0.68);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  --accent-orange: #c77a33;
  --accent-orange-bright: #bf8140;
  --accent-orange-highlight: #ffb35c;
  --accent-purple: #8f5bb6;
  --accent-purple-bright: #9d61c7;
  --accent-purple-highlight: #d09bff;
  --danger: rgba(255, 110, 110, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, var(--bg-3), var(--bg-1));
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    radial-gradient(60% 45% at 24% 30%, rgba(199, 122, 51, 0.1), transparent),
    radial-gradient(60% 45% at 78% 28%, rgba(157, 97, 199, 0.18), transparent),
    url('./assets/bg_wall_4.png');
  background-size: auto, auto, auto, 300px 300px;
  background-position: center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}

.bg::before,
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.bg::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
}

.bg::after {
  background:
    radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, 0.6) 74%),
    radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.09), transparent 55%);
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.brand {
  margin: 0;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
}

.card {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-inner);
  padding: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px rgba(157, 97, 199, 0.35),
    0 0 48px rgba(157, 97, 199, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(300deg, rgba(157, 97, 199, 0.12), rgba(199, 122, 51, 0.07));
}

.card__title {
  margin: 10px 0 20px;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  letter-spacing: 0.12em;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.eligibility p,
.help,
.footer {
  color: var(--muted);
}

.eligibility p {
  margin: 0 0 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: all 140ms ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: rgba(208, 155, 255, 0.7);
  box-shadow: 0 0 14px rgba(157, 97, 199, 0.35);
  outline: none;
}

.form {
  display: grid;
  gap: 14px;
}

.field { display: grid; gap: 8px; }

.label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'Cinzel', serif;
}

.input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 11px 12px;
  font-size: 0.96rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input::placeholder { color: rgba(231, 231, 231, 0.48); }

.input:focus {
  outline: none;
  border-color: var(--accent-purple-bright);
  box-shadow: 0 0 0 1px rgba(157, 97, 199, 0.45), 0 0 16px rgba(157, 97, 199, 0.25);
}

.input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(255, 110, 110, 0.2), 0 0 12px rgba(255, 110, 110, 0.15);
}

.help {
  margin: 0;
  font-size: 0.78rem;
}

.btn {
  margin-top: 4px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, rgba(157, 97, 199, 0.95), rgba(109, 59, 143, 0.95));
  box-shadow: 0 0 24px rgba(157, 97, 199, 0.35), 0 20px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 140ms ease;
}

.btn:hover:enabled,
.btn:focus-visible:enabled {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(157, 97, 199, 0.42), 0 22px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
  outline: none;
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25) saturate(0.8);
  opacity: 0.75;
}


.btn.is-registered {
  background: rgba(120, 120, 120, 0.55);
  border-color: rgba(180, 180, 180, 0.35);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.btn.is-closed {
  background: rgba(160, 74, 74, 0.56);
  border-color: rgba(220, 120, 120, 0.35);
  box-shadow: none;
  color: rgba(255, 236, 236, 0.95);
}

.status {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status:empty {
  display: none;
}

.status.success {
  border-color: rgba(99, 211, 139, 0.25);
  background: rgba(99, 211, 139, 0.09);
  color: #c8f7d8;
}

.status.error {
  border-color: rgba(255, 110, 110, 0.35);
  background: rgba(255, 110, 110, 0.08);
  color: #ffd1d1;
}

.footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .card { padding: 28px; }
}
