@font-face {
  font-family: "TerminaTest";
  src: url("../fonts/TerminaTest-Bold.woff2") format("woff2"), url("../fonts/TerminaTest-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "FKRoman";
  src: url("../fonts/FKRomanStandard-BoldOblique.woff2") format("woff2"), url("../fonts/FKRomanStandard-BoldOblique.woff") format("woff");
  font-weight: 700;
  font-style: italic;
}

:root {
  color-scheme: only dark;
  --black: #050505;
  --black-soft: #111;
  --yellow: #ffd649;
  --yellow-deep: #f0b900;
  --cream: #fff8dc;
  --muted: rgba(255, 248, 220, 0.66);
  --line: rgba(255, 214, 73, 0.34);
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(255, 214, 73, 0.15) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #161616 0%, var(--black) 44%, #090909 100%);
}

button,
input {
  font: inherit;
}

.signup-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.signup-shell {
  width: min(100%, 35rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(0, 0, 0, 0.98));
  box-shadow: 0 1.4rem 3.4rem var(--shadow), inset 0 1px 0 rgba(255, 214, 73, 0.12);
  padding: clamp(1rem, 4.5vw, 1.6rem);
}

.brand-header {
  display: grid;
  justify-items: center;
  gap: clamp(1.05rem, 3.5vw, 1.4rem);
  margin-bottom: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
}

.brand-header picture {
  display: block;
  width: min(68vw, 15.5rem);
}

.brand-header img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0.55rem 0 rgba(0, 0, 0, 0.7));
}

.brand-header p {
  margin: 0;
  color: var(--yellow);
  font-family: "TerminaTest", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  font-size: clamp(1.3rem, 6vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.signup-form,
.field-stack {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field span,
.interest-group legend {
  color: var(--yellow);
  font-family: "TerminaTest", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid rgba(255, 214, 73, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--cream);
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: rgba(255, 248, 220, 0.36);
}

.field input:focus {
  border-color: var(--yellow);
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 214, 73, 0.14);
}

.interest-group {
  display: grid;
  gap: 0.7rem;
  margin: 0.2rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(255, 214, 73, 0.24);
  border-radius: 8px;
  background: rgba(255, 214, 73, 0.055);
}

.interest-group p {
  margin: -0.25rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.interest-option {
  position: relative;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.82rem 0.85rem;
  border: 1px solid rgba(255, 214, 73, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--cream);
  cursor: pointer;
}

.interest-option:has(input:checked) {
  border-color: rgba(255, 214, 73, 0.82);
  background: rgba(255, 214, 73, 0.14);
}

.interest-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--yellow);
}

.interest-option .event-detail {
  display: block;
  min-width: 0;
  font-family: "TerminaTest", Arial, sans-serif;
  font-size: clamp(0.58rem, 2.8vw, 0.9rem);
  line-height: 1.25;
}

.event-title,
.event-detail small {
  white-space: nowrap;
}

.event-detail em {
  color: var(--yellow);
  font-style: normal;
}

.event-detail small {
  display: block;
  margin-top: 0.28rem;
  color: var(--cream);
  font: inherit;
}

.terms-option {
  display: grid;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe36a 0%, var(--yellow) 58%, var(--yellow-deep) 100%);
  color: #111;
  cursor: pointer;
  font-family: "TerminaTest", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0.55rem 0 rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.86;
}

.submit-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-left: 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.status.is-error {
  color: #ffb2a8;
}

.status.is-loading,
.status.is-success {
  color: var(--yellow);
}

.site-footer {
  width: min(100%, 35rem);
  margin-top: 1rem;
  color: rgba(255, 248, 220, 0.5);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .signup-page {
    padding: 0.65rem;
  }

  .signup-shell {
    padding: 0.85rem;
  }
}
