:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --accent: #222;
  --soft: #eee;
}
* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, #e8e8e8, transparent 34%),
    radial-gradient(circle at 90% 85%, #e8e8e8, transparent 32%), #f7f7f7;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
main {
  position: relative;
  width: min(100%, 510px);
  padding: clamp(30px, 7vw, 56px);
  overflow: hidden;
  border: 1px solid #22222218;
  border-radius: 26px;
  background: #ffffffdf;
  box-shadow: 0 24px 70px #2424241c;
  animation: enter 0.7s ease both;
}
main:before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -95px;
  top: -105px;
  border-radius: 50%;
  background: black;
}
.brand {
  position: relative;
  color: black;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  place-items: center;
  border-radius: 10px;
  background: #222;
  color: white;
}
.eyebrow {
  margin: 42px 0 12px;
  color: #686868;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 4rem);
  letter-spacing: -0.075em;
  line-height: 0.98;
}
h1 span {
  color: #555;
}
.intro {
  margin: 20px 0 27px;
  color: #707070;
  line-height: 1.7;
}
label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.field {
  margin-bottom: 16px;
}
input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  outline: none;
  background: white;
  color: var(--ink);
  font: inherit;
}
input:focus {
  border-color: #666;
  box-shadow: 0 0 0 4px #66666624;
}

.signup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
button:hover,
.signup-submit:hover {
  transform: translateY(-2px);
  background: #111;
}
button:focus-visible,
.signup-submit:focus-visible {
  outline: 3px solid #888;
  outline-offset: 3px;
}
.fine {
  margin: 16px 0 0;
  color: #898989;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}
#success {
  display: none;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#success.visible {
  display: flex;
  animation: enter 0.55s ease both;
}
#success .eyebrow {
  margin: 24px 0 12px;
}
#success .intro {
  max-width: 360px;
}
.party {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 34px;
  background: var(--soft);
  font-size: 3.4rem;
  animation: float 3s ease-in-out infinite;
}
.party:after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid #d8d8d8;
  border-radius: 40px;
  animation: pulse 2.2s ease-out infinite;
}
.spark {
  position: absolute;
  font-size: 1.3rem;
  animation: twinkle 1.7s ease-in-out infinite alternate;
}
.spark.one {
  top: 0;
  right: -25px;
}
.spark.two {
  bottom: 2px;
  left: -27px;
  animation-delay: 0.6s;
}
.again {
  width: auto;
  min-height: 0;
  margin-top: 5px;
  padding: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
}
.again:hover {
  background: transparent;
  text-decoration: underline;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}
@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 0.8;
  }
  to {
    transform: scale(1.18);
    opacity: 0;
  }
}
@keyframes twinkle {
  to {
    transform: scale(1.15) rotate(12deg);
    opacity: 0.65;
  }
}
@media (max-width: 480px) {
  main {
    border-radius: 21px;
  }
  .eyebrow {
    margin-top: 34px;
  }
  #success {
    min-height: 380px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
