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

:root {
  --text: #faf6f0;
  --text-muted: rgba(250, 246, 240, 0.68);
  --accent: #d4a0a8;
  --accent-soft: rgba(212, 160, 168, 0.22);
  --success: #b8e6c4;
  --error: #f0a8a8;
}

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

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #16120f;
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #16120f;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.scene__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(48, 32, 24, 0.75) 0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 28% 46%, rgba(240, 210, 218, 0.06), transparent 58%),
    radial-gradient(ellipse 50% 45% at 88% 22%, rgba(196, 140, 150, 0.07), transparent 56%),
    radial-gradient(ellipse 85% 75% at 50% 100%, rgba(22, 14, 10, 0.42), transparent 75%),
    linear-gradient(115deg, #16120f 0%, #1a1410 42%, #100c0a 100%);
}

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}

.scene__glow--rose {
  width: 360px;
  height: 360px;
  top: 62%;
  left: -4%;
  background: #a8707c;
}

.scene__glow--violet {
  width: 440px;
  height: 440px;
  bottom: 10%;
  right: 12%;
  background: #c48a94;
}

.scene__figure {
  position: absolute;
  left: -10%;
  top: 50%;
  width: calc(108vh * 1.5);
  height: 108vh;
  transform: translateY(-50%);
  opacity: 1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 42% center;
  mix-blend-mode: soft-light;
  filter: saturate(0.92) contrast(1.02) brightness(1.14);
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 66%,
    rgba(0, 0, 0, 0.5) 82%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 66%,
    rgba(0, 0, 0, 0.5) 82%,
    transparent 96%
  );
}

.scene__shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: auto;
  background: transparent;
}

.scene__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 52%, rgba(16, 12, 10, 0.08) 64%, rgba(16, 12, 10, 0.34) 78%, rgba(16, 12, 10, 0.5) 100%),
    linear-gradient(180deg, transparent 0%, transparent 88%, rgba(16, 12, 10, 0.12) 100%);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.signup {
  width: min(360px, 100%);
  text-align: left;
}

.signup__header {
  margin-bottom: 2rem;
}

.signup__header::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 1.35rem;
  background: rgba(212, 160, 168, 0.35);
}

.title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
}

.title__one {
  font-size: 1.45em;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.55);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

input[type="email"]::placeholder {
  color: rgba(250, 246, 240, 0.32);
}

input[type="email"]:focus {
  border-color: rgba(212, 160, 168, 0.4);
  background: rgba(255, 252, 248, 0.03);
}

button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(212, 160, 168, 0.45);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 234, 216, 0.92);
  cursor: pointer;
  background: transparent;
  animation: buttonHighlight 12s ease-in-out infinite;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.45;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 240, 244, 0.1) 50%,
    transparent 58%
  );
  transform: translateX(-140%);
  animation: buttonShine 12s linear infinite;
  pointer-events: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

button:disabled::after {
  animation: none;
}

.message {
  min-height: 1rem;
  padding-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

.message--success {
  color: var(--success);
}

.message--error {
  color: var(--error);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes buttonHighlight {
  0%,
  100% {
    border-color: rgba(212, 160, 168, 0.42);
    box-shadow: 0 0 0 rgba(212, 160, 168, 0);
  }
  50% {
    border-color: rgba(212, 160, 168, 0.52);
    box-shadow: 0 0 14px rgba(212, 160, 168, 0.05);
  }
}

@keyframes buttonShine {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@media (max-width: 900px) {
  .page {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: clamp(2rem, 7vh, 3rem);
  }

  .signup {
    text-align: center;
  }

  .signup__header::after {
    margin-inline: auto;
  }

  .scene__figure {
    left: 0;
    top: 0;
    width: 100%;
    height: 68dvh;
    max-height: none;
    transform: none;
    background-size: cover;
    background-position: 12% center;
    mix-blend-mode: normal;
    filter: saturate(0.94) contrast(1.02) brightness(1.16);
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 1) 18%,
      rgba(0, 0, 0, 1) 62%,
      rgba(0, 0, 0, 0.35) 88%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 1) 18%,
      rgba(0, 0, 0, 1) 62%,
      rgba(0, 0, 0, 0.35) 88%,
      transparent 100%
    );
  }

  .scene__veil {
    background:
      linear-gradient(180deg, rgba(16, 12, 10, 0.12) 0%, transparent 28%, rgba(16, 12, 10, 0.45) 72%, rgba(16, 12, 10, 0.82) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  button::after {
    animation: none !important;
  }
}
