:root {
  --ink: #30232f;
  --muted: #756573;
  --line: rgba(91, 61, 78, 0.16);
  --paper: rgba(255, 251, 247, 0.78);
  --plum: #70435f;
  --terracotta: #c87762;
}

* { 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(255, 158, 118, .72), transparent 38%),
    radial-gradient(circle at 94% 18%, rgba(205, 153, 218, .7), transparent 42%),
    linear-gradient(100deg, #fff4e9 0%, #fffaf2 46%, #f2dff0 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: #c58ed2; }
body::after { bottom: -30rem; left: -12rem; background: #ff9876; 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;
  background: rgba(255, 250, 245, .28);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(89, 50, 76, .07), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

h1 { margin: 0; color: #3a1731; 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: 430px; margin: 20px auto 36px; color: #6f5869; 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; }
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(112, 67, 95, .58); box-shadow: 0 0 0 4px rgba(112, 67, 95, .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: #fff; font: 600 1rem "DM Sans", sans-serif; background: linear-gradient(105deg, #bd6e61, #5b294c); border: 0; border-radius: 14px; cursor: pointer; box-shadow: 0 11px 26px rgba(91, 41, 76, .22); transition: transform .2s, box-shadow .2s, opacity .2s; }
button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(112, 67, 95, .29); }
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; }
.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; }
}
