.auth-split {
  --bg: #f8f6ef;
  --panel: #fffdf8;
  --line: #dfdfd5;
  background: var(--bg);
}

.auth-return {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  margin-bottom: 20px;
  font-size: 14px;
  color: #55453c;
}
.auth-return svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-split main.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  padding: 0;
}

.auth-showcase {
  position: sticky;
  top: 0;
  align-self: start;
  isolation: isolate;
  height: 100svh;
  overflow: hidden;
  margin: 0;
  background: #34463d;
  color: white;
}
.auth-coast,
.auth-showcase::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-coast { object-fit: cover; object-position: 43% center; z-index: -2; }
.auth-showcase::after {
  content: "";
  z-index: -1;
  background: linear-gradient(160deg, #10241cf2 0%, #12281dc2 30%, #11281b35 66%, #14241b48 100%);
}
.auth-showcase-copy {
  position: absolute;
  z-index: 1;
  inset: clamp(28px, 6vh, 64px) 8% auto;
  margin: 0;
}
.auth-showcase-brand { display: block; width: clamp(96px, 10vw, 132px); height: auto; margin-bottom: clamp(22px, 4vh, 46px); }
.auth-showcase-copy p { margin: 0; }
.auth-showcase-copy .auth-showcase-title {
  font-size: clamp(34px, min(4.6vw, 8vh), 70px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.auth-showcase-copy p + p { font-size: clamp(13px, 1.3vw, 18px); color: #f4f4e9; }
.auth-preview {
  position: absolute;
  inset: auto 5% 5%;
  width: min(90%, 82svh);
  margin-inline: auto;
  aspect-ratio: 1234 / 794;
  filter: drop-shadow(0 22px 27px #10191280);
  animation: auth-preview-in 700ms cubic-bezier(.22, 1, .36, 1) both;
}
.auth-laptop { display: block; width: 100%; height: 100%; }
.auth-laptop-screen {
  position: absolute;
  inset: 4% 13.55% 24%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.5%;
  background: #63736a url("/assets/hero-coast.jpg") center / cover;
}
.auth-laptop-screen img {
  display: block;
  width: 60%;
  height: auto;
  max-height: 90%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px #13271d78);
  border-radius: 3.5% / 4.1%;
}
@keyframes auth-preview-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.auth-account-column {
  width: min(420px, 100% - 2 * clamp(24px, 5vw, 64px));
  align-self: center;
  justify-self: center;
  min-width: 0;
  padding-block: clamp(24px, 5vh, 64px);
}
.auth-split .auth-card { width: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; }
.auth-split .auth-card h1 { font-size: clamp(28px, 3.15vw, 46px); letter-spacing: -.045em; text-wrap: initial; }
.auth-split .auth-lead { font-size: 15px; }
.auth-split .auth-form { margin-top: 0; gap: 14px; }
.auth-split .auth-field { gap: 5px; }
.auth-split .auth-input input, .auth-split .auth-field > input {
  height: 48px;
  background: #ffffff80;
  border-color: #d5d9cf;
}
.auth-split .password-toggle { top: 2px; right: 2px; }
.auth-split .auth-form > .button { min-height: 48px; }
.auth-split .button:not(.secondary) {
  background: linear-gradient(165deg, rgba(175, 79, 45, .97), rgba(155, 64, 34, .98));
  border-color: #9f472b;
  box-shadow: inset 0 1px 0 #fff4, 0 3px 8px #62271018;
}
.auth-split .button:not(.secondary):hover {
  background: linear-gradient(165deg, #ae502d, #913b21);
}
.auth-social { display: grid; gap: 8px; margin-top: 22px; }
.auth-social .button {
  min-height: 44px;
  background: linear-gradient(145deg, #ffffffb3, #eaf0e480);
  border-color: #d5dbd1;
  box-shadow: inset 0 1px #fffc, 0 2px 5px #1e352a07;
  font-size: 14px;
}
.auth-social .button:disabled { opacity: 1; color: #646c64; }
.auth-social .button:disabled svg { opacity: .7; }
.auth-social .button[aria-busy=true] svg { display: none; }
.auth-social .button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.auth-social-status, .auth-trial-steps { font-size: 13px; line-height: 1.45; color: #565f58; margin: 0; }
.auth-trial-steps { margin-top: 5px; }
.auth-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block: 18px 15px;
  color: #59665d;
  font-size: 12px;
  white-space: nowrap;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #dedfd6; }
.auth-referral summary { width: fit-content; padding-block: 8px; font-size: 13px; color: #395a4c; cursor: pointer; }
.auth-referral[open] > .auth-field { margin-top: 6px; }
.auth-split .auth-bottom, .auth-split .auth-links { margin-top: 18px; }
.auth-split .auth-reassurance { margin: 26px auto 0; }
@media (max-width: 840px) {
  .auth-split main.auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { position: relative; height: clamp(204px, 42vw, 320px); }
  .auth-showcase-copy { inset: 13% 6% auto; }
  .auth-showcase-brand { width: 94px; margin-bottom: 12px; }
  .auth-showcase-copy .auth-showcase-title { font-size: clamp(26px, 5vw, 42px); margin-bottom: 8px; }
  .auth-showcase-copy p + p { max-width: 19ch; }
  .auth-preview { inset: auto -6% 1% auto; width: min(60%, 480px); margin: 0; }
  .auth-split .auth-links { display: flex; gap: 10px 16px; }
  .auth-account-column { padding-top: 20px; }
  .auth-return { margin-bottom: 12px; }
}
@media (max-height: 640px) and (min-width: 841px) {
  .auth-preview { width: min(85%, 65svh); bottom: 2%; }
  .auth-showcase-brand { margin-bottom: 18px; }
  .auth-showcase-copy .auth-showcase-title { font-size: clamp(32px, 7vh, 47px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-preview { animation: none; }
}
