.onboard-body {
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}

.onboard {
  display: grid;
  grid-template-columns: minmax(20rem, 28rem) 1fr;
  min-height: 100vh;
}

.onboard-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 2.5rem;
  background: #fff;
}

.onboard-mark {
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.onboard-auth h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.onboard-slogan {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.onboard-sub {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(16, 32, 24, 0.7);
}

.onboard-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 1.75rem;
  min-height: 3.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #f7faf7;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.onboard-google:hover {
  background: #0b1611;
}

.onboard-google-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #fff;
}

.onboard-alt,
.onboard-missing {
  margin: 1.35rem 0 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(16, 32, 24, 0.62);
}

.onboard-alt a,
.onboard-missing a {
  color: var(--leaf-deep);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.onboard-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--leaf-deep);
}

.onboard-status.is-error {
  color: #9a2d16;
}

.onboard-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  margin-top: 1.75rem;
  min-height: 3.15rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--leaf), var(--leaf-deep));
  color: #f4fff7;
  font-weight: 650;
}

.onboard-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.75rem;
  background:
    radial-gradient(ellipse 70% 55% at 20% 10%, rgba(31, 143, 78, 0.16), transparent 55%),
    linear-gradient(165deg, #efe8dc 0%, #f6f1e8 48%, #e4ddd2 100%);
}

.onboard-hero {
  position: relative;
  width: min(100%, 36rem);
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 3.5rem);
}

.onboard-hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(16, 32, 24, 0.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1000'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23cbb89a'/%3E%3Cstop offset='1' stop-color='%238f7a62'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='1000' fill='url(%23g)'/%3E%3Cpath d='M220 1000V430c40-180 320-180 360 0v570' fill='%23d8c7ae'/%3E%3Cellipse cx='400' cy='760' rx='210' ry='70' fill='%23b79d7e'/%3E%3Cpath d='M250 820c50 70 250 70 300 0' stroke='%236b5640' stroke-width='18' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
      center / cover;
  box-shadow: var(--shadow);
}

.onboard-hero-product {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.onboard-hero-sku {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  color: rgba(16, 32, 24, 0.58);
}

.onboard-panel {
  position: absolute;
  top: 8%;
  right: 6%;
  width: min(17.5rem, 72%);
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 32, 24, 0.08);
  box-shadow: 0 18px 48px rgba(16, 32, 24, 0.16);
}

.onboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.onboard-panel-head em {
  font-style: normal;
  font-size: 0.78rem;
  color: #146b39;
  background: #e7f7ec;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.onboard-panel-item {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}

.onboard-panel-meta {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.75rem;
  color: rgba(16, 32, 24, 0.55);
}

.onboard-panel-save {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: #102018;
  color: #eef8f0;
}

.onboard-panel-save span {
  font-size: 0.68rem;
  opacity: 0.7;
}

.onboard-panel-save em {
  font-style: normal;
  font-size: 0.72rem;
  color: #86efac;
}

.onboard-panel-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.onboard-panel-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  border-top: 1px solid rgba(16, 32, 24, 0.08);
}

.onboard-ribbon {
  position: absolute;
  top: 12%;
  right: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 5.4rem;
  border-radius: 10px 0 0 10px;
  background: #16a34a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

@media (max-width: 860px) {
  .onboard {
    grid-template-columns: 1fr;
  }

  .onboard-auth {
    min-height: auto;
    padding: 2rem 1.4rem 1.5rem;
  }

  .onboard-visual {
    min-height: 28rem;
    padding: 0 1.1rem 1.6rem;
  }

  .onboard-hero {
    aspect-ratio: 5 / 4;
    max-height: none;
  }
}
