/* Split promo + multi-step wizard used by registration. */

.chrome-split { background: #f6f8fc; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
  max-width: none;
  padding: 0;
}

/* ---------------------------------------------------------------------------
   Promo panel
   ------------------------------------------------------------------------ */

.split-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d2a6b;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 3.5rem 2.5rem;
}

/* Layered aurora: two large soft colour fields drifting past each other. */
.split-promo::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(42% 46% at 22% 26%, rgba(59, 130, 246, .75), transparent 62%),
    radial-gradient(38% 42% at 78% 22%, rgba(37, 99, 235, .6), transparent 60%),
    radial-gradient(48% 50% at 66% 82%, rgba(12, 74, 190, .8), transparent 65%),
    linear-gradient(155deg, #1748c4 0%, #14379c 48%, #0b2467 100%);
  background-color: #12388f;
  animation: auroraDrift 26s ease-in-out infinite;
}
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(2%, -3%, 0) scale(1.06); }
  66%      { transform: translate3d(-2%, 2%, 0) scale(1.03); }
}

/* Fine engineering grid — reads as precision rather than decoration. */
.split-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 65% at 50% 45%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 35%, transparent 78%);
}

/* Drifting squares behind the promo copy. */
.split-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.split-shapes span {
  position: absolute;
  display: block;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  animation: squareFloat var(--dur, 22s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}
.split-shapes span:nth-child(1) { width: 104px; height: 104px; top: 12%; left: 8%;  --dur: 24s; --delay: 0s; }
.split-shapes span:nth-child(2) { width: 62px;  height: 62px;  top: 26%; right: 12%; --dur: 19s; --delay: -4s; }
.split-shapes span:nth-child(3) { width: 142px; height: 142px; bottom: 16%; left: 14%; --dur: 27s; --delay: -9s; }
.split-shapes span:nth-child(4) { width: 78px;  height: 78px;  bottom: 26%; right: 16%; --dur: 21s; --delay: -14s; }
.split-shapes span:nth-child(5) { width: 46px;  height: 46px;  top: 54%; left: 46%;  --dur: 17s; --delay: -6s; }
.split-shapes span:nth-child(6) { width: 92px;  height: 92px;  top: 6%;  right: 34%; --dur: 25s; --delay: -11s; }

@keyframes squareFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%      { transform: translate3d(14px, -22px, 0) rotate(8deg); }
  50%      { transform: translate3d(-10px, -38px, 0) rotate(-6deg); }
  75%      { transform: translate3d(-18px, -16px, 0) rotate(5deg); }
}

.split-promo-inner { position: relative; z-index: 1; max-width: 32rem; }

.split-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 2.5rem;
  animation: riseIn .6s cubic-bezier(.22, .9, .3, 1) both;
}
.split-brand svg { width: 34px; height: 34px; }

.split-promo h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-align: center;
  animation: riseIn .6s cubic-bezier(.22, .9, .3, 1) .08s both;
}
.split-lead {
  text-align: center;
  font-size: 1.08rem;
  color: #dbeafe;
  margin: 1.1rem auto 2.5rem;
  max-width: 28rem;
  animation: riseIn .6s cubic-bezier(.22, .9, .3, 1) .16s both;
}

.split-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.split-points li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  font-size: .97rem;
  color: #e0ebff;
  line-height: 1.5;
  animation: riseIn .55s cubic-bezier(.22, .9, .3, 1) both;
  animation-delay: calc(.24s + var(--i) * .09s);
}
.split-points strong { color: #fff; font-weight: 650; }
.split-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  margin-top: .1rem;
}
.split-check svg { width: 14px; height: 14px; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   Form side
   ------------------------------------------------------------------------ */

.split-form {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 2.5rem 2rem 3rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #eef3fb;
}

/* Soft colour blobs behind the form; the card frosts over them. */
.split-form::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(34% 30% at 24% 22%, rgba(59, 130, 246, .38), transparent 66%),
    radial-gradient(30% 28% at 80% 30%, rgba(139, 92, 246, .3), transparent 64%),
    radial-gradient(38% 34% at 62% 84%, rgba(14, 165, 233, .32), transparent 68%);
  animation: blobDrift 30s ease-in-out infinite;
  filter: blur(8px);
}
@keyframes blobDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-3%, 3%, 0) scale(1.08); }
  66%      { transform: translate3d(3%, -2%, 0) scale(1.04); }
}

.wizard-card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  /* Liquid glass: translucent, blurred, with a light top edge. */
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  box-shadow:
    0 18px 50px rgba(15, 33, 78, .14),
    inset 0 1px 0 rgba(255, 255, 255, .85);
  padding: 2rem;
  animation: riseIn .5s cubic-bezier(.22, .9, .3, 1) both;
}

/* Inputs need a touch more opacity to stay readable on glass. */
.split-form .input,
.split-form .select,
.split-form textarea.input { background: rgba(255, 255, 255, .82); }
.split-form .type-card { background: rgba(255, 255, 255, .7); }
.split-form .type-card.is-selected { background: rgba(232, 239, 253, .92); }

.wizard-steps {
  position: relative;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.wizard-step { display: grid; justify-items: center; gap: .45rem; text-align: center; }
.wizard-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 650;
  background: #eef2f7;
  color: var(--ink-subtle);
  border: 2px solid transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.wizard-step-name {
  font-size: .78rem;
  font-weight: 550;
  color: var(--ink-subtle);
  transition: color .3s ease;
}
.wizard-step.is-active .wizard-step-dot {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
}
.wizard-step.is-active .wizard-step-name { color: var(--brand); font-weight: 650; }
.wizard-step.is-done .wizard-step-dot { background: var(--brand); color: #fff; }
.wizard-step.is-done .wizard-step-name { color: var(--ink-muted); }

.wizard-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}
.wizard-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #3b82f6);
  transition: width .45s cubic-bezier(.22, .9, .3, 1);
}

/* Panels: only the active step is shown, and it animates in from its direction. */
.wizard-panel { display: none; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.wizard-panel.is-active { display: block; }
.wizard-panel.slide-from-right { animation: slideFromRight .38s cubic-bezier(.22, .9, .3, 1) both; }
.wizard-panel.slide-from-left  { animation: slideFromLeft .38s cubic-bezier(.22, .9, .3, 1) both; }

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none; }
}

.wizard-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  animation: popIn .45s cubic-bezier(.34, 1.4, .5, 1) both;
}
.wizard-icon svg { width: 28px; height: 28px; }

@keyframes popIn {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: none; }
}

.wizard-panel h2 {
  text-align: center;
  font-size: 1.32rem;
  letter-spacing: -.02em;
}
.wizard-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: .94rem;
  margin: .4rem auto 1.75rem;
  max-width: 26rem;
}

.req { color: #dc2626; }
.field-legend { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .55rem; }

/* Inputs with a leading icon and optional trailing reveal button. */
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > svg {
  position: absolute;
  left: .9rem;
  width: 19px;
  height: 19px;
  color: var(--ink-subtle);
  pointer-events: none;
  z-index: 1;
}
.input-icon .input,
.input-icon .select { padding-left: 2.75rem; }
.input-icon .select { background-position: right .8rem center; }
.input-icon .input:focus ~ svg { color: var(--brand); }

.reveal {
  position: absolute;
  right: .55rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-subtle);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.reveal:hover { background: #eef2f7; color: var(--ink); }
.reveal.is-on { color: var(--brand); }
.reveal svg { width: 19px; height: 19px; }

.input.has-error,
.select.has-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

/* ---------------------------------------------------------------------------
   Account type cards
   ------------------------------------------------------------------------ */

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.type-grid-extra { margin-top: .75rem; animation: expandIn .3s ease both; }

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.type-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.type-card:hover { border-color: #93b4f5; background: #fafbff; }
.type-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2f7;
  color: var(--ink-muted);
  transition: background-color .2s ease, color .2s ease;
}
.type-card.is-selected .type-icon { background: var(--brand); color: #fff; }
.type-icon svg { width: 19px; height: 19px; }
.type-body { display: grid; gap: .15rem; min-width: 0; }
.type-body strong { font-size: .92rem; font-weight: 620; }
.type-body span { font-size: .82rem; color: var(--ink-subtle); line-height: 1.4; }

.disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: .85rem;
  padding: .5rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 550;
  color: var(--brand);
  cursor: pointer;
}
.disclosure:hover { text-decoration: underline; }
.disclosure svg { width: 18px; height: 18px; transition: transform .3s ease; }
.disclosure.is-open svg { transform: rotate(180deg); }

/* ---------------------------------------------------------------------------
   Password strength
   ------------------------------------------------------------------------ */

.strength { margin-top: .85rem; animation: expandIn .25s ease both; }
.strength-label { font-size: .85rem; color: var(--ink-muted); margin-bottom: .4rem; }
.strength-label span { font-weight: 650; }
.strength-track {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}
.strength-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #dc2626;
  transition: width .35s cubic-bezier(.22, .9, .3, 1), background-color .35s ease;
}
.strength-fill.is-weak   { background: #dc2626; }
.strength-fill.is-fair   { background: #f59e0b; }
.strength-fill.is-good   { background: #3b82f6; }
.strength-fill.is-strong { background: #059669; }
.is-weak   { color: #dc2626; }
.is-fair   { color: #b45309; }
.is-good   { color: #1d4ed8; }
.is-strong { color: #047857; }

.strength-rules { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.strength-rules li {
  position: relative;
  padding-left: 1.55rem;
  font-size: .86rem;
  color: var(--ink-subtle);
  transition: color .25s ease;
}
.strength-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.strength-rules li.is-met { color: #047857; }
.strength-rules li.is-met::before {
  border-color: #047857;
  background: #047857 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.match { margin-top: .5rem; font-size: .88rem; font-weight: 550; animation: expandIn .2s ease both; }
.match.is-ok { color: #047857; }
.match.is-off { color: #b45309; }

.inline-link { font-weight: 550; }

/* ---------------------------------------------------------------------------
   Actions
   ------------------------------------------------------------------------ */

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wizard-actions .btn { min-width: 8.5rem; }
.btn-icon { width: 17px; height: 17px; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wizard-error {
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: .9rem;
}
.shake { animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-promo { padding: 2.5rem 1.5rem; }
  .split-promo h1 { font-size: 1.9rem; }
  .split-brand { margin-bottom: 1.5rem; }
  .split-lead { margin-bottom: 1.75rem; }
  .split-form { padding: 2rem 1rem 3rem; }
}

@media (max-width: 640px) {
  .wizard-card { padding: 1.35rem; border-radius: 14px; }
  .wizard-step-name { display: none; }
  .wizard-steps { grid-template-columns: repeat(4, auto); justify-content: center; gap: 1.75rem; padding-bottom: 1.25rem; }
  .type-grid { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; }
  .split-points li { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .split-promo::before,
  .split-promo::after { animation: none; }
  .wizard-panel.slide-from-right,
  .wizard-panel.slide-from-left,
  .wizard-icon,
  .split-brand,
  .split-promo h1,
  .split-lead,
  .split-points li,
  .wizard-card,
  .strength,
  .match,
  .type-grid-extra { animation: none; }
}

.stacked-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }

/* Brand logo sizing (inline SVG keeps the gradient crisp at any size). */
.brand-logo { width: 1.55em; height: 1.55em; flex: none; }
.split-brand .brand-logo { width: 2.1em; height: 2.1em; }
.auth-brand .brand-logo { width: 1.7em; height: 1.7em; }
.brand-footer .brand-logo { width: 1.6em; height: 1.6em; }

/* Floating credentials preview under the promo copy. */
.promo-proof {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  animation: riseIn .6s cubic-bezier(.22, .9, .3, 1) .55s both;
}
.promo-proof-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
}
.promo-proof-icon svg { width: 20px; height: 20px; }
.promo-proof strong { display: block; font-size: .93rem; }
.promo-proof span { font-size: .84rem; color: #cfe0fb; }
