:root {
  color-scheme: dark;
  --ink: #fff2d3;
  --muted: #c6d3b5;
  --leaf: #bfe874;
  --leaf-deep: #4e8a45;
  --moss: #133b2b;
  --moss-dark: #061813;
  --gold: #ffd363;
  --orange: #ff9954;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #061813;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.bot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.forest {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(22px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(255, 221, 105, 0.18) 0%, transparent 24%),
    radial-gradient(circle at 66% 18%, rgba(255, 224, 112, 0.46), transparent 13rem),
    radial-gradient(circle at 24% 78%, rgba(174, 227, 112, 0.18), transparent 20rem),
    linear-gradient(180deg, #0c3a2a 0%, #09251d 42%, #061511 100%);
}

.forest::before,
.forest::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.forest::before {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(193, 230, 107, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(2, 15, 11, 0.7), transparent 23%, transparent 77%, rgba(2, 15, 11, 0.72)),
    linear-gradient(180deg, transparent 45%, rgba(2, 13, 10, 0.72));
  z-index: 3;
}

.forest::after {
  background-image:
    linear-gradient(76deg, transparent 0 47%, rgba(49, 76, 42, 0.4) 48% 50%, transparent 51%),
    linear-gradient(103deg, transparent 0 55%, rgba(42, 74, 43, 0.32) 56% 58%, transparent 59%);
  background-position:
    left bottom,
    right bottom;
  background-repeat: no-repeat;
  background-size:
    52vw 100%,
    48vw 100%;
  opacity: 0.85;
  z-index: 1;
}

.forest__depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(119, 167, 72, 0.26) 0 0.9rem, transparent 1rem),
    radial-gradient(circle at 77% 29%, rgba(165, 210, 92, 0.24) 0 0.72rem, transparent 0.8rem),
    radial-gradient(circle at 88% 72%, rgba(237, 196, 89, 0.26) 0 0.55rem, transparent 0.65rem),
    radial-gradient(circle at 12% 81%, rgba(239, 205, 91, 0.25) 0 0.54rem, transparent 0.62rem),
    repeating-radial-gradient(ellipse at 50% 115%, rgba(33, 81, 45, 0.55) 0 1.8rem, rgba(8, 33, 25, 0.5) 1.85rem 3.4rem);
  filter: blur(0.2px);
}

.tree {
  position: absolute;
  bottom: -8rem;
  z-index: 1;
  width: clamp(8rem, 13vw, 15rem);
  height: 118vh;
  pointer-events: none;
  background:
    linear-gradient(86deg, transparent 0 16%, rgba(255, 231, 147, 0.08) 17% 19%, transparent 20%),
    linear-gradient(92deg, rgba(3, 16, 12, 0.96), #123324 34%, #254c32 48%, #071a14 82%);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.38);
}

.tree::before,
.tree::after {
  content: "";
  position: absolute;
  width: 4.2rem;
  height: 72vh;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 91, 49, 0.54), rgba(4, 20, 15, 0.74));
  transform-origin: bottom center;
}

.tree::before {
  top: 0;
  left: 54%;
  transform: rotate(34deg);
}

.tree::after {
  top: 9vh;
  left: 12%;
  transform: rotate(-24deg);
}

.tree--left {
  left: -4rem;
  border-radius: 40% 62% 28% 22%;
  transform: rotate(3deg);
}

.tree--right {
  right: -5rem;
  border-radius: 62% 40% 22% 28%;
  transform: scaleX(-1) rotate(3deg);
}

.canopy {
  position: absolute;
  top: -7rem;
  z-index: 2;
  width: min(42rem, 54vw);
  height: 30rem;
  background:
    radial-gradient(ellipse at 24% 32%, #173c2c 0 16%, transparent 17%),
    radial-gradient(ellipse at 45% 27%, #28583d 0 14%, transparent 15%),
    radial-gradient(ellipse at 63% 43%, #19442f 0 18%, transparent 19%),
    radial-gradient(ellipse at 78% 19%, #2e633e 0 12%, transparent 13%),
    radial-gradient(ellipse at 18% 56%, #0f2d22 0 18%, transparent 19%),
    radial-gradient(ellipse at 54% 67%, #214f35 0 16%, transparent 17%);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.24));
  opacity: 0.92;
}

.canopy--left {
  left: -9rem;
  transform: rotate(-8deg);
}

.canopy--right {
  right: -10rem;
  transform: scaleX(-1) rotate(-10deg);
}

.vines {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.vines i {
  position: absolute;
  top: -2rem;
  width: 0.28rem;
  height: clamp(9rem, 26vh, 18rem);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(168, 216, 106, 0.5), rgba(28, 74, 42, 0));
  box-shadow: 0 0 12px rgba(189, 234, 114, 0.14);
}

.vines i::before,
.vines i::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 0.82rem;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(193, 230, 112, 0.64), rgba(42, 92, 51, 0.42));
}

.vines i::before {
  top: 30%;
  left: -1.28rem;
  transform: rotate(-28deg);
}

.vines i::after {
  top: 52%;
  right: -1.28rem;
  transform: scaleX(-1) rotate(-26deg);
}

.vines i:nth-child(1) { left: 12%; height: 19rem; }
.vines i:nth-child(2) { left: 31%; height: 12rem; opacity: 0.65; }
.vines i:nth-child(3) { right: 18%; height: 17rem; }
.vines i:nth-child(4) { right: 36%; height: 10rem; opacity: 0.54; }

.understory {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 15rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 48% 100%, rgba(161, 199, 72, 0.2), transparent 34%),
    linear-gradient(180deg, transparent, rgba(5, 21, 15, 0.78));
}

.fern,
.mushroom {
  position: absolute;
  bottom: 0;
}

.fern {
  width: 13rem;
  height: 7rem;
  background:
    radial-gradient(ellipse at 12% 84%, rgba(126, 174, 75, 0.74) 0 8%, transparent 9%),
    radial-gradient(ellipse at 26% 70%, rgba(85, 139, 70, 0.68) 0 10%, transparent 11%),
    radial-gradient(ellipse at 43% 60%, rgba(148, 190, 78, 0.62) 0 9%, transparent 10%),
    radial-gradient(ellipse at 61% 70%, rgba(82, 129, 65, 0.7) 0 9%, transparent 10%),
    radial-gradient(ellipse at 80% 82%, rgba(132, 178, 76, 0.64) 0 8%, transparent 9%);
  filter: blur(0.2px);
}

.fern--left {
  left: -1.5rem;
}

.fern--right {
  right: -2rem;
  transform: scaleX(-1);
}

.mushroom {
  width: 2.1rem;
  height: 3.2rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #f3db9a, #a98556);
  box-shadow: 0 0 20px rgba(255, 211, 99, 0.16);
}

.mushroom::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1rem;
  width: 4.2rem;
  height: 2.2rem;
  border-radius: 999px 999px 38% 38%;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 238, 193, 0.8) 0 0.24rem, transparent 0.28rem),
    radial-gradient(circle at 65% 34%, rgba(255, 238, 193, 0.76) 0 0.18rem, transparent 0.22rem),
    linear-gradient(180deg, #e9834b, #a74f2f);
  transform: translateX(-50%);
}

.mushroom--one {
  left: 9%;
  bottom: 1.7rem;
  transform: scale(0.92);
}

.mushroom--two {
  right: 11%;
  bottom: 2.4rem;
  transform: scale(0.72);
  opacity: 0.92;
}

.fireflies {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.fireflies span {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #fff089;
  box-shadow:
    0 0 12px #ffe16c,
    0 0 30px rgba(255, 214, 97, 0.54);
  opacity: 0.72;
  animation: float 3.2s ease-in-out infinite alternate;
}

.fireflies span:nth-child(1) { top: 12%; left: 21%; }
.fireflies span:nth-child(2) { top: 17%; right: 29%; animation-delay: 0.4s; }
.fireflies span:nth-child(3) { top: 35%; left: 11%; animation-delay: 0.9s; }
.fireflies span:nth-child(4) { top: 41%; right: 12%; animation-delay: 1.2s; }
.fireflies span:nth-child(5) { bottom: 17%; left: 18%; animation-delay: 0.2s; }
.fireflies span:nth-child(6) { bottom: 13%; right: 26%; animation-delay: 1.7s; }
.fireflies span:nth-child(7) { top: 64%; left: 73%; animation-delay: 0.7s; }
.fireflies span:nth-child(8) { top: 72%; left: 39%; animation-delay: 1.4s; }
.fireflies span:nth-child(9) { top: 25%; left: 54%; animation-delay: 2s; }
.fireflies span:nth-child(10) { bottom: 28%; right: 7%; animation-delay: 2.4s; }

.signup {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(1120px, 100%);
  min-height: min(680px, calc(100svh - 44px));
  align-items: center;
  column-gap: clamp(1.25rem, 4vw, 3.4rem);
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
}

.signup__brand {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #d9f779;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.brand-leaf {
  width: 2.1rem;
  height: 1.25rem;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #e5f878, #72ad4d);
  transform: rotate(-18deg);
  box-shadow: 0 0 20px rgba(191, 232, 116, 0.35);
}

.brand-leaf::after {
  content: "";
  display: block;
  width: 1.65rem;
  height: 1px;
  margin: 0.66rem 0 0 0.2rem;
  background: rgba(45, 86, 42, 0.52);
  transform: rotate(-28deg);
}

.avatar-wrap {
  position: relative;
  display: grid;
  min-height: clamp(28rem, 62vh, 36rem);
  place-items: center;
}

.avatar-glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 24rem;
  max-width: 80vw;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(222, 255, 139, 0.22), transparent 63%),
    radial-gradient(circle, rgba(255, 153, 84, 0.16), transparent 45%);
  filter: blur(16px);
  transform: translate(-50%, -50%);
}

.avatar {
  position: relative;
  z-index: 1;
  width: min(31rem, 42vw);
  max-height: min(62vh, 36rem);
  object-fit: contain;
  filter:
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.38))
    saturate(0.92);
}

.popup {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 30rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid rgba(213, 255, 143, 0.32);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(33, 64, 49, 0.86), rgba(10, 31, 24, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(255, 211, 99, 0.2), transparent 12rem);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.popup::before {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 1.35rem;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(213, 255, 143, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.18), transparent 28%),
    rgba(17, 54, 39, 0.7);
}

.popup::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 1.2rem;
  width: 1.2rem;
  height: 0.78rem;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #e4f96f, #63893c);
  transform: rotate(-16deg);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff0cf;
  font-size: clamp(2.55rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.lede {
  max-width: 31ch;
  margin: 1.25rem 0 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 650;
  line-height: 1.55;
}

.email-field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.email-field span {
  color: #e8f8ca;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-field input {
  width: 100%;
  min-height: 3.65rem;
  border: 1px solid rgba(213, 255, 143, 0.32);
  border-radius: 18px;
  outline: none;
  padding: 0 1rem;
  background: rgba(5, 22, 17, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.email-field input::placeholder {
  color: rgba(226, 234, 201, 0.5);
}

.email-field input:focus {
  border-color: rgba(213, 255, 143, 0.78);
  box-shadow:
    0 0 0 4px rgba(191, 232, 116, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

button {
  display: inline-flex;
  width: 100%;
  min-height: 3.7rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 211, 99, 0.96), rgba(255, 153, 84, 0.96) 52%, rgba(186, 235, 99, 0.96));
  color: #153120;
  cursor: pointer;
  font-weight: 950;
  box-shadow:
    0 18px 34px rgba(255, 153, 84, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(255, 153, 84, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

button:active {
  transform: translateY(0);
}

.form-note {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: rgba(232, 248, 202, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-note.is-success {
  color: #d9ff8d;
}

.form-note.is-error {
  color: #ffd1a7;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: 0.48;
  }

  to {
    transform: translate3d(0.7rem, -1.2rem, 0) scale(1.08);
    opacity: 0.98;
  }
}

@media (max-width: 780px) {
  .forest {
    align-items: start;
    padding: 1rem;
  }

  .signup {
    min-height: calc(100svh - 2rem);
    padding-top: 4.7rem;
    grid-template-columns: 1fr;
  }

  .signup__brand {
    left: 0.35rem;
  }

  .avatar-wrap {
    order: 1;
    min-height: auto;
  }

  .avatar {
    width: min(23rem, 92vw);
    max-height: none;
  }

  .avatar-glow {
    width: 21rem;
  }

  .popup {
    order: 2;
    max-width: none;
    margin-top: -0.5rem;
    border-radius: 26px;
  }

  .popup::before {
    width: 2.8rem;
    height: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
