:root {
  --pink: #ec4495;
  --ink: #f6f3f0;
  --muted: rgba(246, 243, 240, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  background: #050505;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.7) 58%, #050505 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.82) 100%),
    url("assets/hero.jpg") center 46% / cover no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 42%;
  height: 28%;
  background: radial-gradient(ellipse at 100% 100%, #050505 0%, transparent 70%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 40px 24px;
}

.lockup {
  text-align: center;
  width: min(32rem, 100%);
  animation: rise 0.9s ease both;
}

.logo {
  display: block;
  width: min(13.5rem, 58vw);
  height: auto;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

h1 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  letter-spacing: normal;
  line-height: 1.3;
}

.rule {
  width: 2.75rem;
  height: 3px;
  margin: 1.15rem auto 1rem;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(236, 68, 149, 0.55);
}

.lockup > p {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
}

em {
  font-style: normal;
  font-weight: 500;
  color: var(--pink);
}

.register {
  position: relative;
  margin-top: 2.85rem;
  text-align: left;
}

.lede {
  margin-bottom: 1.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.fields {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  grid-template-columns: 8.15rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(246, 243, 240, 0.72);
}

label > span {
  line-height: 1.25;
  text-align: left;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(246, 243, 240, 0.42);
}

input:not(.hp) {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(246, 243, 240, 0.16);
  border-radius: 12px;
  background: rgba(5, 5, 5, 0.55);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:not(.hp)::placeholder {
  color: rgba(246, 243, 240, 0.35);
}

input:not(.hp):focus {
  outline: none;
  border-color: rgba(236, 68, 149, 0.8);
  box-shadow: 0 0 0 3px rgba(236, 68, 149, 0.18);
}

button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 1.85rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(236, 68, 149, 0.28);
}

button[type="submit"]:hover {
  filter: brightness(1.06);
}

button[type="submit"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
  filter: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

.form-status:not(:empty) {
  margin-top: 0.85rem;
}

.form-status[data-kind="error"] {
  color: #ffb4c8;
}

.form-status[data-kind="success"] {
  color: var(--ink);
}

.register[data-state="success"] .fields,
.register[data-state="success"] button {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  label {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    column-gap: 0.65rem;
    font-size: 0.72rem;
  }
}

@media (max-height: 800px) {
  .logo {
    width: min(10.5rem, 48vw);
    margin-bottom: 1.15rem;
  }

  .stage {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lockup {
    animation: none;
  }
}
