:root {
  --ink: #292735;
  --muted: #696675;
  --line: rgba(53, 49, 68, 0.16);
  --paper: rgba(251, 248, 239, 0.78);
  --plum: #51405b;
  --terracotta: #b58145;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 2% 82%, rgba(214, 163, 91, .58), transparent 38%),
    radial-gradient(circle at 94% 18%, rgba(139, 146, 188, .58), transparent 42%),
    linear-gradient(100deg, #f5ead4 0%, #fbf8ef 46%, #e5e4ec 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

body::before { top: -28rem; right: -12rem; background: #858eb9; }
body::after { bottom: -30rem; left: -12rem; background: #d39b50; animation-delay: -7s; }

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.signup {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
}

.eyebrow { margin: 0 0 13px; color: #716b61; font-size: .72rem; font-weight: 600; letter-spacing: .22em; line-height: 1; text-transform: uppercase; }
h1 { margin: 0; color: #30263b; font-family: "Fraunces", Georgia, serif; font-size: clamp(3.4rem, 10vw, 5.35rem); font-weight: 700; line-height: .93; letter-spacing: -.055em; }
.intro { max-width: 560px; margin: 20px auto 36px; color: #625f6d; font-size: 1.02rem; line-height: 1.65; }
form { text-align: left; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
label { display: block; margin: 0 0 8px 2px; color: #574653; font-size: .82rem; font-weight: 600; }
label small { color: #8b899b; font-size: .74rem; font-weight: 400; }
.field > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input { width: 100%; height: 52px; padding: 0 16px; color: var(--ink); font: inherit; font-size: .96rem; background: rgba(255,252,249,.72); border: 1px solid rgba(91,61,78,.14); border-radius: 13px; outline: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder { color: #aaa8b7; }
input:focus { background: #fff; border-color: rgba(81, 64, 91, .58); box-shadow: 0 0 0 4px rgba(81, 64, 91, .1); }
input[aria-invalid="true"] { border-color: #bb3e60; }

button { width: 100%; height: 54px; margin-top: 7px; padding: 0 19px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #293346; font: 600 1rem "DM Sans", sans-serif; background: #a8b9ce; border: 1px solid rgba(45, 58, 79, .12); border-radius: 14px; cursor: pointer; box-shadow: 0 7px 18px rgba(45, 58, 79, .12), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s, background .2s, opacity .2s; }
button:hover { transform: translateY(-2px); background: #98acc5; box-shadow: 0 10px 22px rgba(45, 58, 79, .17), inset 0 1px 0 rgba(255,255,255,.24); }
button:focus-visible { outline: 3px solid rgba(112, 67, 95, .25); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; transform: none; }
.arrow { font-size: 1.35rem; line-height: 1; transition: transform .2s; }
button:hover .arrow { transform: translateX(3px); }
.message { min-height: 22px; margin: 13px 0 0; text-align: center; color: #3b7770; font-size: .88rem; }
.message.error { color: #ad3556; }
.credits { margin: 8px 0 0; color: #716e79; font-size: .78rem; }
.credits a { color: inherit; font-weight: 600; text-decoration-line: underline; text-decoration-color: rgba(113, 110, 121, .5); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.credits a:hover { text-decoration-color: currentColor; }
.credits a:focus-visible { outline: 2px solid rgba(91, 41, 76, .35); outline-offset: 3px; border-radius: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes drift { to { transform: translate3d(7vw, 5vh, 0) scale(1.12); } }

@media (max-width: 560px) {
  .page-shell { padding: 18px 14px; }
  .signup { padding: 34px 20px 30px; border-radius: 22px; }
  .intro { margin-bottom: 27px; font-size: .96rem; }
  .name-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
