.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  min-height: 100dvh;
  background: var(--surface);
  position: relative;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: none;
  filter: drop-shadow(0 4px 10px color-mix(in oklab, var(--accent) 45%, transparent));
}

.auth-card {
  width: min(100%, 392px);
  margin: auto;
  padding: 36px 0 24px;
  display: grid;
  gap: 22px;
  animation: rise 0.5s var(--ease);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.auth-loading {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--text-3);
}
.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.auth-card .lead {
  color: var(--text-2);
  margin-top: 6px;
}
.auth-foot {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding-top: 8px;
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-card.shake {
  animation: shake 0.4s var(--ease);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-strong);
  font-weight: 550;
  font-size: 13px;
}
.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.caps-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--warning);
}
.inline-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 13px;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid color-mix(in oklab, var(--danger) 28%, transparent);
}
.inline-error .icon {
  margin-top: 2px;
}
.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

/* wizard */
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-3);
}
.step .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  border: 1.5px solid var(--border-strong);
}
.step.active {
  color: var(--text);
}
.step.active .n {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step.done .n {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
}
.steps .bar {
  flex: 1;
  height: 1.5px;
  background: var(--border-strong);
  min-width: 14px;
}

/* right-hand showcase panel */
.auth-aside {
  display: none;
  position: relative;
  overflow: hidden;
  color: #ececf1;
  color-scheme: dark;
  background: #09090d;
}
@media (min-width: 980px) {
  .auth-aside {
    display: grid;
    place-items: center;
  }
}
.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
}
.auth-aside::before {
  width: 560px;
  height: 560px;
  left: -140px;
  top: -160px;
  background: oklch(0.5 0.22 var(--hue));
  animation: drift 18s ease-in-out infinite alternate;
}
.auth-aside::after {
  width: 480px;
  height: 480px;
  right: -140px;
  bottom: -180px;
  background: oklch(0.55 0.2 calc(var(--hue) + 55));
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}
.aside-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 40px;
  display: grid;
  gap: 22px;
}
.aside-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(6px);
}
.auth-aside h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}
.auth-aside p {
  color: rgb(236 236 241 / 0.72);
  font-size: 15px;
  line-height: 1.6;
}
.aside-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.aside-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.aside-points li > span {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.aside-points b {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
}
.aside-points em {
  display: block;
  font-style: normal;
  color: rgb(236 236 241 / 0.62);
  font-size: 13.5px;
}
.aside-card {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.13);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.aside-card-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.aside-card-row code {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
}
.aside-card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgb(74 222 128 / 0.2);
}
.aside-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
}
.aside-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(to top, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.55));
}
.aside-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgb(236 236 241 / 0.65);
}

@media print {
  .auth-aside,
  .auth-top,
  .auth-foot {
    display: none;
  }
}

.brand-mark img,
.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- customer sign-in / sign-up additions ---------- */
.provider-btns {
  display: grid;
  gap: 10px;
}
.provider-btns.two {
  grid-template-columns: 1fr 1fr;
}
.btn.provider {
  justify-content: center;
  gap: 10px;
  height: 42px;
  font-weight: 600;
  background: var(--surface);
}
.btn.provider:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.btn.provider .icon {
  width: 18px;
  height: 18px;
}
.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-3);
  font-size: 12.5px;
}
.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.terms {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.terms a,
.auth-alt a,
.auth-card a:not(.btn) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  color: var(--text-2);
  font-size: 13.5px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  cursor: pointer;
}
.check-row input {
  margin-top: 2px;
  accent-color: var(--accent);
}
.state-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.state-mark.ok {
  background: var(--success-soft);
  color: var(--success);
}
.state-mark.bad {
  background: var(--danger-soft);
  color: var(--danger);
}
.state-mark .icon {
  width: 26px;
  height: 26px;
}
.auth-card .stack {
  display: grid;
  gap: 14px;
}
.mail-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  font-weight: 600;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---- e-mail-first sign-up: the "pending" mark and the three-step tracker ---- */
.state-mark.pulse {
  position: relative;
}
.state-mark.pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
  animation: mark-pulse 2.2s ease-out infinite;
}
@keyframes mark-pulse {
  from {
    opacity: 0.9;
    transform: scale(0.92);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .state-mark.pulse::after {
    animation: none;
    opacity: 0.35;
  }
}
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 14px;
  padding: 0;
  list-style: none;
}
.stepper li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  position: relative;
}
.stepper li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.stepper li.done:not(:last-child)::after {
  background: var(--accent);
}
.stepper .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-3);
}
.stepper .dot .icon {
  width: 14px;
  height: 14px;
}
.stepper li.done {
  color: var(--text-2);
}
.stepper li.done .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.stepper li.current {
  color: var(--text);
}
.stepper li.current .dot {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* 6-digit e-mail confirmation code on the "check your inbox" screen */
.otp-form {
  display: grid;
  gap: 8px;
}
.otp-row {
  display: flex;
  gap: 8px;
}
.otp-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  font-size: 20px;
  letter-spacing: 0.4em;
  text-align: center;
}

/* hCaptcha widget (only rendered when captcha is switched on) */
.captcha-box {
  display: flex;
  justify-content: center;
  min-height: 78px;
}
