/* 3Business corporate portal — auth shell (prototype) */
body.portal-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: var(--soft);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(67, 106, 178, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(78, 185, 172, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--soft) 100%);
}

body.portal-auth .portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

body.portal-auth .portal-header .util-bar {
  justify-content: space-between;
  gap: 12px;
}

body.portal-auth .portal-header .back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

body.portal-auth .portal-header .back-link:hover {
  color: var(--blue-deep);
}

body.portal-auth .portal-header .util-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.portal-auth .portal-header .head {
  min-height: 58px;
}

body.portal-auth .portal-header .logo img {
  height: 44px;
}

body.portal-auth .portal-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 40px;
}

body.portal-auth .auth-split-wrap {
  width: min(1040px, calc(100% - 40px));
}

body.portal-auth .auth-split {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

body.portal-auth .auth-split-brand {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

body.portal-auth .auth-split-brand-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 45%, var(--teal-deep) 100%);
}

body.portal-auth .auth-split-brand-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
}

body.portal-auth .auth-split-brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.15) 0%, rgba(20, 32, 51, 0.75) 100%);
}

body.portal-auth .auth-split-brand-copy {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}

body.portal-auth .auth-split-brand-copy .auth-brand-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 8px 0 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

body.portal-auth .auth-eyebrow-light {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0;
}

body.portal-auth .auth-value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

body.portal-auth .auth-value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

body.portal-auth .auth-value-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

body.portal-auth .auth-value-icon svg {
  width: 18px;
  height: 18px;
}

body.portal-auth .auth-split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: var(--white);
}

body.portal-auth .auth-form-inner {
  width: 100%;
  max-width: 440px;
}

body.portal-auth .auth-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.portal-auth .auth-card-accent {
  display: none;
}

body.portal-auth .auth-card-body {
  padding: 0;
}

body.portal-auth .auth-form-eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
}

body.portal-auth .auth-card h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.05rem);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

body.portal-auth .auth-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

body.portal-auth .auth-banner {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  border: 1px solid transparent;
}

body.portal-auth .auth-banner--info {
  background: #e8eef9;
  border-color: rgba(67, 106, 178, 0.25);
  color: var(--blue-deep);
}

body.portal-auth .auth-banner--error {
  background: #fdeeee;
  border-color: rgba(180, 50, 50, 0.2);
  color: #8b1e1e;
}

body.portal-auth .auth-banner--warn {
  background: #fff6e8;
  border-color: rgba(180, 120, 20, 0.25);
  color: #6b4200;
}

body.portal-auth .auth-banner a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.portal-auth .field {
  margin-bottom: 18px;
}

body.portal-auth .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

body.portal-auth .field-input-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

body.portal-auth .field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.portal-auth .field input:hover {
  border-color: rgba(67, 106, 178, 0.35);
}

body.portal-auth .field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 106, 178, 0.18);
}

body.portal-auth .field--password input {
  padding-right: 52px;
}

body.portal-auth .toggle-password {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

body.portal-auth .toggle-password:hover {
  background: var(--soft);
}

body.portal-auth .auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font-size: 16px;
}

body.portal-auth .auth-submit[disabled] {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

body.portal-auth .auth-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 13.5px;
  color: var(--muted);
}

body.portal-auth .auth-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

body.portal-auth .auth-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--teal-deep);
}

body.portal-auth .auth-trust a {
  font-weight: 800;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.portal-auth .auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

body.portal-auth .auth-links a {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-deep);
}

body.portal-auth .auth-links a:hover {
  color: var(--teal-deep);
}

body.portal-auth .auth-help {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 0;
  overflow: hidden;
}

body.portal-auth .auth-help summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blue-deep);
  padding: 14px 16px 14px 46px;
  list-style: none;
  position: relative;
  line-height: 1.4;
  min-height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
}

body.portal-auth .auth-help summary::-webkit-details-marker {
  display: none;
}

body.portal-auth .auth-help summary::marker {
  content: "";
}

body.portal-auth .auth-help summary::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -1px;
  border-right: 2px solid var(--blue-deep);
  border-bottom: 2px solid var(--blue-deep);
  transform: translateY(-65%) rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

body.portal-auth .auth-help[open] summary::before {
  transform: translateY(-25%) rotate(45deg);
}

body.portal-auth .auth-help summary:hover {
  background: rgba(67, 106, 178, 0.06);
}

body.portal-auth .auth-help summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

body.portal-auth .auth-help[open] summary {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(67, 106, 178, 0.05);
}

body.portal-auth .auth-help-body {
  padding: 14px 16px 16px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

body.portal-auth .auth-help-body p {
  margin: 0 0 10px;
}

body.portal-auth .auth-help-body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

body.portal-auth .auth-help-body li {
  margin: 4px 0;
}

body.portal-auth .auth-help-body a {
  color: var(--blue-deep);
  font-weight: 800;
}

body.portal-auth .auth-legal {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

body.portal-auth .auth-legal a {
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.portal-auth .portal-footer {
  padding: 20px 0 24px;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--line);
}

body.portal-auth .portal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}

body.portal-auth .portal-footer .brand-note {
  margin: 0;
  max-width: 48ch;
  font-size: 13px;
  color: var(--muted);
}

body.portal-auth .portal-footer .foot-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.portal-auth .portal-footer .foot-mini-links a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-deep);
}

/* Hub (post-login) */
body.portal-hub {
  background-image:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(67, 106, 178, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(78, 185, 172, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, var(--soft) 100%);
}

body.portal-hub .portal-main {
  align-items: flex-start;
  padding-top: 36px;
}

body.portal-hub .hub-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

body.portal-hub .hub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

body.portal-hub .hub-top h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 6px;
}

body.portal-hub .hub-greeting {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

body.portal-hub .hub-alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff6e8;
  border: 1px solid rgba(180, 120, 20, 0.25);
  color: #6b4200;
  font-size: 14.5px;
}

body.portal-hub .hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

body.portal-hub .hub-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 20px 18px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.portal-hub .hub-card:hover {
  border-color: rgba(67, 106, 178, 0.35);
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
  transform: translateY(-1px);
}

body.portal-hub .hub-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.portal-hub .hub-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--blue-deep);
  flex: 0 0 auto;
}

body.portal-hub .hub-card-icon svg {
  width: 20px;
  height: 20px;
}

body.portal-hub .hub-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

body.portal-hub .hub-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

body.portal-hub .hub-card .hub-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

body.portal-hub .hub-card--billing {
  border-left-color: var(--blue);
}

body.portal-hub .hub-card--billing .hub-card-icon {
  background: #e8eef9;
  color: var(--blue-deep);
}

body.portal-hub .hub-card--billing.hub-card--featured {
  border: 1px solid rgba(67, 106, 178, 0.35);
  border-left: 4px solid var(--blue);
  box-shadow: 0 12px 32px rgba(67, 106, 178, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

body.portal-hub .hub-card--usage {
  border-left-color: var(--teal);
}

body.portal-hub .hub-card--usage .hub-card-icon {
  background: #e8f7f4;
  color: var(--teal-deep);
}

body.portal-hub .hub-card--services {
  border-left-color: var(--blue-deep);
}

body.portal-hub .hub-card--documents {
  border-left-color: #6b7c99;
}

body.portal-hub .hub-card--support {
  border-left-color: var(--teal-deep);
}

body.portal-hub .hub-card--settings {
  border-left-color: var(--line);
}

body.portal-hub .hub-card.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

body.portal-hub .sign-out-btn {
  min-height: 40px;
}

/* Forgot / request access — single column */
body.portal-auth .auth-layout {
  width: min(440px, calc(100% - 40px));
}

body.portal-auth .auth-layout--solo .auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.portal-auth .auth-layout--solo .auth-card-accent {
  display: block;
  height: 4px;
}

body.portal-auth .auth-layout--solo .auth-card-body {
  padding: 28px 28px 24px;
}

body.portal-auth .auth-card-body .lede {
  margin-bottom: 20px;
}

body.portal-auth .step-list {
  margin: 0 0 20px;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

body.portal-auth .step-list li {
  margin: 8px 0;
}

@media (max-width: 899px) {
  body.portal-auth .portal-main {
    padding: 16px 0 max(32px, calc(72px + env(safe-area-inset-bottom, 0px)));
    align-items: stretch;
  }

  body.portal-auth .auth-split-wrap {
    width: min(1040px, calc(100% - 24px));
  }

  body.portal-auth .auth-split {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  body.portal-auth .auth-split-brand {
    /* Panels are position:absolute — need explicit band height on small screens */
    min-height: clamp(200px, 42vw, 280px);
    order: -1;
  }

  body.portal-auth .auth-split-brand-bg img {
    opacity: 0.35;
  }

  body.portal-auth .auth-split-brand-copy {
    padding: 20px 20px 18px;
  }

  body.portal-auth .auth-value-list {
    display: none;
  }

  body.portal-auth .auth-split-brand-copy .auth-brand-title {
    margin-bottom: 0;
    font-size: 1.1rem;
  }

  body.portal-auth .auth-split-form {
    padding: 24px 20px 28px;
  }

  body.portal-auth .auth-form-inner {
    max-width: none;
  }

  body.portal-auth .portal-header .util-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.portal-auth .portal-header .back-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.portal-auth .auth-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.portal-auth .auth-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  body.portal-auth .auth-trust {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body.portal-auth .auth-split-wrap {
    width: calc(100% - 20px);
  }

  body.portal-auth .auth-split-form {
    padding: 20px 16px 24px;
  }

  body.portal-auth .auth-card h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  body.portal-auth .portal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.portal-auth .portal-header .head {
    min-height: 52px;
  }

  body.portal-auth .portal-header .logo img {
    height: 38px;
  }
}

@media (max-width: 599px) {
  .layout-demo-picker {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 6px;
    border-radius: 16px;
    max-width: none;
    padding: 10px 12px;
  }

  .layout-demo-picker select {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: 12px;
  }
}

/* --- Layout demo picker (prototype only) --- */
.layout-demo-picker {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(20, 40, 80, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.layout-demo-picker select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  font: inherit;
  font-weight: 800;
  color: var(--blue-deep);
  background: var(--soft);
  cursor: pointer;
}

.layout-demo-picker select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Layout panels inside brand column */
body.portal-auth .auth-split-brand {
  overflow: hidden;
}

body.portal-auth .layout-panel {
  display: none;
  position: absolute;
  inset: 0;
}

body.portal-auth[data-layout="brand"] .layout-panel--brand {
  display: flex;
  flex-direction: column;
}

body.portal-auth[data-layout="deel"] .layout-panel--deel {
  display: flex;
  flex-direction: column;
}

body.portal-auth[data-layout="vodafone"] .layout-panel--vodafone {
  display: block;
}

body.portal-auth[data-layout="epidemic"] .layout-panel--epidemic {
  display: block;
}

body.portal-auth[data-layout="emergent"] .layout-panel--emergent {
  display: flex;
  flex-direction: column;
}

body.portal-auth .layout-promo--zoho {
  display: none;
}

/* Layout 1 — 3Business brand (default; rules above) */

/* Layout 2 — Marketing split (Deel-inspired) */
body.portal-auth[data-layout="deel"] {
  background: #ebe6f8;
  background-image:
    radial-gradient(circle at 12% 88%, rgba(78, 185, 172, 0.12), transparent 50%),
    radial-gradient(circle at 88% 12%, rgba(67, 106, 178, 0.14), transparent 45%),
    linear-gradient(180deg, #f0ebfa 0%, #e8e2f4 100%);
}

body.portal-auth[data-layout="deel"] .portal-main {
  padding: 32px 0 48px;
  align-items: center;
}

body.portal-auth[data-layout="deel"] .auth-split-wrap {
  width: min(1080px, calc(100% - 48px));
}

body.portal-auth[data-layout="deel"] .auth-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

body.portal-auth[data-layout="deel"] .auth-split-brand {
  min-height: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

body.portal-auth[data-layout="deel"] .layout-panel--deel {
  position: relative;
  inset: auto;
  width: 100%;
}

body.portal-auth[data-layout="deel"] .deel-panel-inner {
  padding: 8px 4px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: 520px;
}

body.portal-auth[data-layout="deel"] .deel-illustration {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(67, 106, 178, 0.1);
  background: #fff;
  box-shadow: 0 20px 48px rgba(67, 106, 178, 0.12);
}

body.portal-auth[data-layout="deel"] .deel-illustration img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

body.portal-auth[data-layout="deel"] .deel-headline {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.03em;
}

body.portal-auth[data-layout="deel"] .deel-highlight {
  background: rgba(255, 255, 255, 0.85);
  padding: 0 6px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.portal-auth[data-layout="deel"] .deel-lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

body.portal-auth[data-layout="deel"] .deel-form-title {
  font-size: clamp(1.65rem, 4vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

body.portal-auth[data-layout="deel"] .auth-split-form {
  padding: 0;
  align-items: stretch;
  justify-content: center;
  background: transparent;
}

body.portal-auth[data-layout="deel"] .auth-form-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow:
    0 4px 6px rgba(67, 106, 178, 0.04),
    0 24px 56px rgba(20, 40, 80, 0.1);
  border: 1px solid rgba(67, 106, 178, 0.08);
}

body.portal-auth[data-layout="deel"] .deel-panel-inner .btn-ghost {
  align-self: flex-start;
  margin-top: 4px;
}

.layout-form-variant {
  display: none;
}

body.portal-auth[data-layout="brand"] .layout-form-variant--brand,
body.portal-auth[data-layout="deel"] .layout-form-variant--deel,
body.portal-auth[data-layout="vodafone"] .layout-form-variant--vodafone,
body.portal-auth[data-layout="epidemic"] .layout-form-variant--epidemic,
body.portal-auth[data-layout="klook"] .layout-form-variant--klook,
body.portal-auth[data-layout="zoho"] .layout-form-variant--zoho,
body.portal-auth[data-layout="emergent"] .layout-form-variant--emergent {
  display: block;
}

/* Layout 3 — Full-bleed hero (Vodafone-inspired) */
body.portal-auth[data-layout="vodafone"] .portal-header,
body.portal-auth[data-layout="vodafone"] .portal-footer {
  display: none;
}

body.portal-auth[data-layout="vodafone"] {
  background: #1e2329;
}

body.portal-auth[data-layout="vodafone"] .portal-main {
  padding: 0;
  min-height: 100vh;
  align-items: stretch;
}

body.portal-auth[data-layout="vodafone"] .auth-split-wrap {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

body.portal-auth[data-layout="vodafone"] .auth-split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.portal-auth[data-layout="vodafone"] .auth-split-brand {
  min-height: 100vh;
}

body.portal-auth[data-layout="vodafone"] .vodafone-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.portal-auth[data-layout="vodafone"] .vodafone-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 60%);
}

body.portal-auth[data-layout="vodafone"] .vodafone-hero-logo {
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 2;
  width: min(280px, 40vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
}

body.portal-auth[data-layout="vodafone"] .auth-split-form {
  background: #2d333b;
  padding: 40px 32px;
  justify-content: center;
  color: #fff;
}

body.portal-auth[data-layout="vodafone"] .auth-card-body {
  display: flex;
  flex-direction: column;
  min-height: min(560px, calc(100vh - 80px));
}

body.portal-auth[data-layout="vodafone"] .auth-legal {
  display: none;
}

body.portal-auth[data-layout="vodafone"] .auth-form-inner {
  max-width: none;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-form-eyebrow {
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  width: 100%;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form #signin-heading,
body.portal-auth[data-layout="vodafone"] .auth-split-form .vodafone-welcome {
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 28px;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-subtitle,
body.portal-auth[data-layout="vodafone"] .auth-split-form .layout-form-variant--brand {
  display: none;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form label {
  color: rgba(255, 255, 255, 0.92);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .field input {
  background: #fff;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-trust {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-trust-item {
  color: #fff;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-trust a,
body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-links a {
  color: #b7d4ff;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help summary,
body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help-body {
  color: rgba(255, 255, 255, 0.8);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help summary::before {
  border-color: rgba(255, 255, 255, 0.85);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help summary:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help[open] summary {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-help-body a {
  color: #b7d4ff;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .auth-legal a {
  color: #b7d4ff;
}

body.portal-auth[data-layout="vodafone"] .auth-split-form .toggle-password {
  color: var(--blue-deep);
}

body.portal-auth[data-layout="vodafone"] .vodafone-legal {
  margin-top: auto;
  padding-top: 24px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

body.portal-auth[data-layout="vodafone"] .vodafone-legal a {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 899px) {
  body.portal-auth[data-layout="deel"] .auth-split,
  body.portal-auth[data-layout="vodafone"] .auth-split {
    grid-template-columns: 1fr;
  }

  body.portal-auth[data-layout="deel"] .auth-split {
    gap: 16px;
  }

  body.portal-auth[data-layout="deel"] .layout-panel {
    position: relative;
    inset: auto;
  }

  body.portal-auth[data-layout="deel"] .auth-split-brand {
    min-height: auto;
    border-radius: var(--radius);
    overflow: visible;
  }

  body.portal-auth[data-layout="deel"] .deel-panel-inner {
    padding: 0 0 8px;
    max-width: none;
  }

  body.portal-auth[data-layout="deel"] .deel-headline {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  body.portal-auth[data-layout="deel"] .deel-illustration img {
    height: clamp(120px, 32vw, 160px);
  }

  body.portal-auth[data-layout="deel"] .auth-split-form {
    padding: 0;
  }

  body.portal-auth[data-layout="deel"] .auth-form-inner {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  body.portal-auth[data-layout="vodafone"] .portal-main,
  body.portal-auth[data-layout="vodafone"] .auth-split-wrap,
  body.portal-auth[data-layout="vodafone"] .auth-split,
  body.portal-auth[data-layout="vodafone"] .auth-split-brand {
    min-height: auto;
  }

  body.portal-auth[data-layout="vodafone"] .auth-split-brand {
    min-height: clamp(180px, 36vw, 240px);
  }

  body.portal-auth[data-layout="vodafone"] .vodafone-hero-logo {
    left: 20px;
    bottom: 20px;
    width: min(160px, 42vw);
  }

  body.portal-auth[data-layout="vodafone"] .auth-split-form {
    padding: 28px 20px 32px;
  }

  body.portal-auth[data-layout="vodafone"] .auth-card-body {
    min-height: auto;
  }
}

/* Layout 4 — Dark form + brand art (Epidemic-inspired, 3Business) */
body.portal-auth[data-layout="epidemic"] .portal-header,
body.portal-auth[data-layout="epidemic"] .portal-footer {
  display: none;
}

body.portal-auth[data-layout="epidemic"] {
  background: var(--ink);
}

body.portal-auth[data-layout="epidemic"] .portal-main {
  padding: 0;
  min-height: 100vh;
  align-items: stretch;
}

body.portal-auth[data-layout="epidemic"] .auth-split-wrap {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

body.portal-auth[data-layout="epidemic"] .auth-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.portal-auth[data-layout="epidemic"] .auth-split-brand {
  min-height: 100vh;
  order: 2;
}

body.portal-auth[data-layout="epidemic"] .auth-split-form {
  order: 1;
  background: linear-gradient(165deg, #0f1828 0%, var(--ink) 55%, #1a2838 100%);
  padding: clamp(32px, 5vw, 56px);
  justify-content: center;
  color: #fff;
}

body.portal-auth[data-layout="epidemic"] .auth-form-inner {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

body.portal-auth[data-layout="epidemic"] .epidemic-logo {
  height: 36px;
  width: auto;
  margin-bottom: 28px;
}

body.portal-auth[data-layout="epidemic"] .epidemic-title {
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.03em;
}

body.portal-auth[data-layout="epidemic"] .epidemic-lede {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

body.portal-auth[data-layout="epidemic"] .field label {
  color: rgba(255, 255, 255, 0.9);
}

body.portal-auth[data-layout="epidemic"] .field input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.portal-auth[data-layout="epidemic"] .field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.portal-auth[data-layout="epidemic"] .field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78, 185, 172, 0.25);
}

body.portal-auth[data-layout="epidemic"] .auth-submit {
  background: #fff;
  color: var(--ink);
}

body.portal-auth[data-layout="epidemic"] .auth-submit:hover {
  background: var(--soft);
}

body.portal-auth[data-layout="epidemic"] .toggle-password {
  color: #b7d4ff;
}

body.portal-auth[data-layout="epidemic"] .auth-trust,
body.portal-auth[data-layout="epidemic"] .auth-help {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.portal-auth[data-layout="epidemic"] .auth-trust-item,
body.portal-auth[data-layout="epidemic"] .auth-help summary,
body.portal-auth[data-layout="epidemic"] .auth-help-body {
  color: rgba(255, 255, 255, 0.82);
}

body.portal-auth[data-layout="epidemic"] .auth-help summary::before {
  border-color: rgba(255, 255, 255, 0.85);
}

body.portal-auth[data-layout="epidemic"] .auth-help[open] summary {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.portal-auth[data-layout="epidemic"] .auth-links a,
body.portal-auth[data-layout="epidemic"] .auth-trust a,
body.portal-auth[data-layout="epidemic"] .auth-help-body a,
body.portal-auth[data-layout="epidemic"] .auth-legal a {
  color: #9ec5ff;
}

body.portal-auth[data-layout="epidemic"] .epidemic-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portal-auth[data-layout="epidemic"] .epidemic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(78, 185, 172, 0.25) 0%, rgba(67, 106, 178, 0.15) 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* Layout 5 — Centered card on brand blue (Klook-inspired) */
body.portal-auth[data-layout="klook"] .portal-header,
body.portal-auth[data-layout="klook"] .portal-footer {
  display: none;
}

body.portal-auth[data-layout="klook"] {
  background: var(--blue-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(78, 185, 172, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
}

body.portal-auth[data-layout="klook"] .portal-main {
  padding: 48px 20px;
  min-height: 100vh;
  position: relative;
}

body.portal-auth[data-layout="klook"] .portal-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 15% 70%, #fff 0 40px, transparent 41px),
    radial-gradient(circle at 25% 85%, #fff 0 24px, transparent 25px),
    radial-gradient(circle at 80% 20%, #fff 0 60px, transparent 61px);
  pointer-events: none;
}

body.portal-auth[data-layout="klook"] .auth-split-wrap {
  width: min(440px, 100%);
  margin: 0 auto;
}

body.portal-auth[data-layout="klook"] .auth-split-brand {
  display: none;
}

body.portal-auth[data-layout="klook"] .auth-split {
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.portal-auth[data-layout="klook"] .auth-split-form {
  padding: 0;
}

body.portal-auth[data-layout="klook"] .auth-form-inner {
  background: #fff;
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-width: none;
}

body.portal-auth[data-layout="klook"] .klook-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

body.portal-auth[data-layout="klook"] .klook-logo-row img {
  height: 36px;
  width: auto;
}

body.portal-auth[data-layout="klook"] .klook-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  padding: 4px 10px;
}

body.portal-auth[data-layout="klook"] .klook-info-box {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #e8eef9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--blue-deep);
}

body.portal-auth[data-layout="klook"] .klook-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

body.portal-auth[data-layout="klook"] .klook-lang-float {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
}

body.portal-auth[data-layout="klook"] .klook-lang-float a {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

body.portal-auth[data-layout="klook"] .klook-footer-copy {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Layout 6 — Centered split card + promo (Zoho-inspired) */
body.portal-auth[data-layout="zoho"] .portal-header,
body.portal-auth[data-layout="zoho"] .portal-footer {
  display: none;
}

body.portal-auth[data-layout="zoho"] {
  background: #e8ecf2;
  background-image:
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.6) 41%, transparent 42%),
    linear-gradient(125deg, transparent 55%, rgba(255, 255, 255, 0.45) 56%, transparent 58%),
    linear-gradient(115deg, #dfe6ef 0%, #eef2f7 45%, #e4eaf2 100%);
}

body.portal-auth[data-layout="zoho"] .portal-main {
  padding: 40px 20px;
  min-height: 100vh;
}

body.portal-auth[data-layout="zoho"] .auth-split-wrap {
  width: min(960px, calc(100% - 24px));
}

body.portal-auth[data-layout="zoho"] .auth-split-brand {
  display: none;
}

body.portal-auth[data-layout="zoho"] .auth-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 40, 80, 0.12);
}

body.portal-auth[data-layout="zoho"] .auth-split-form {
  padding: 40px 36px;
  background: #fff;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--line);
}

body.portal-auth[data-layout="zoho"] .auth-form-inner {
  max-width: none;
  width: 100%;
}

body.portal-auth[data-layout="zoho"] .layout-promo--zoho {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background: var(--soft);
  position: static;
}

body.portal-auth[data-layout="zoho"] .zoho-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

body.portal-auth[data-layout="zoho"] .zoho-title {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}

body.portal-auth[data-layout="zoho"] .zoho-title-sub {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

body.portal-auth[data-layout="zoho"] .zoho-promo-carousel {
  width: 100%;
}

body.portal-auth[data-layout="zoho"] .zoho-carousel-viewport {
  overflow: hidden;
}

body.portal-auth[data-layout="zoho"] .zoho-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body.portal-auth[data-layout="zoho"] .zoho-carousel-track {
    transition: none;
  }
}

body.portal-auth[data-layout="zoho"] .zoho-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

body.portal-auth[data-layout="zoho"] .zoho-slide h2 {
  font-size: 1.35rem;
  margin: 20px 0 10px;
  letter-spacing: -0.02em;
}

body.portal-auth[data-layout="zoho"] .zoho-slide p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

body.portal-auth[data-layout="zoho"] .zoho-slide .btn-ghost {
  margin-top: 4px;
}

body.portal-auth[data-layout="zoho"] .zoho-promo-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

body.portal-auth[data-layout="zoho"] .zoho-promo-visual img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

body.portal-auth[data-layout="zoho"] .zoho-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

body.portal-auth[data-layout="zoho"] .zoho-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

body.portal-auth[data-layout="zoho"] .zoho-carousel-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

body.portal-auth[data-layout="zoho"] .zoho-carousel-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

body.portal-auth[data-layout="zoho"] .zoho-page-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.layout-klook-only,
.layout-zoho-only {
  display: none;
}

body.portal-auth[data-layout="klook"] .layout-klook-only {
  display: block;
}

body.portal-auth[data-layout="zoho"] .layout-zoho-only {
  display: block;
}

/* Layout 7 — Form + feature carousel (Emergent-inspired) */
body.portal-auth[data-layout="emergent"] {
  background: #fff;
  background-image: none;
}

body.portal-auth[data-layout="emergent"] .portal-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

body.portal-auth[data-layout="emergent"] .portal-header .head {
  display: none;
}

body.portal-auth[data-layout="emergent"] .portal-footer {
  display: none;
}

body.portal-auth[data-layout="emergent"] .portal-main {
  align-items: stretch;
  padding: 16px 0 24px;
}

body.portal-auth[data-layout="emergent"] .auth-split-wrap {
  width: min(1180px, calc(100% - 32px));
}

body.portal-auth[data-layout="emergent"] .auth-split {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  gap: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

body.portal-auth[data-layout="emergent"] .auth-split-form {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: min(640px, calc(100vh - 120px));
  padding: 24px 20px;
}

body.portal-auth[data-layout="emergent"] .auth-split-brand {
  order: 2;
  min-height: min(640px, calc(100vh - 120px));
  border-radius: 32px;
  justify-content: stretch;
  color: #fff;
}

body.portal-auth[data-layout="emergent"] .auth-form-inner {
  width: min(400px, 100%);
}

body.portal-auth[data-layout="emergent"] .auth-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.portal-auth[data-layout="emergent"] .auth-card-body {
  padding: 8px 0 0;
}

body.portal-auth[data-layout="emergent"] .emergent-form-head {
  text-align: center;
  margin-bottom: 20px;
}

body.portal-auth[data-layout="emergent"] .emergent-form-logo {
  margin: 0 auto 20px;
  display: block;
}

body.portal-auth[data-layout="emergent"] .emergent-form-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 10px;
}

body.portal-auth[data-layout="emergent"] .emergent-form-title-accent {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.portal-auth[data-layout="emergent"] .emergent-form-signup {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}

body.portal-auth[data-layout="emergent"] .emergent-form-signup a {
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.portal-auth[data-layout="emergent"] .field label {
  font-size: 13px;
  font-weight: 600;
}

body.portal-auth[data-layout="emergent"] .field input {
  border-radius: 999px;
  padding: 12px 16px;
  border-color: #e2e8f0;
  background: #fff;
}

body.portal-auth[data-layout="emergent"] .auth-submit {
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  background: #1e293b;
  border-color: #1e293b;
}

body.portal-auth[data-layout="emergent"] .auth-submit:hover {
  background: #0f172a;
  border-color: #0f172a;
}

body.portal-auth[data-layout="emergent"] .auth-links {
  justify-content: center;
}

body.portal-auth[data-layout="emergent"] .auth-trust {
  justify-content: center;
}

body.portal-auth[data-layout="emergent"] .emergent-showcase {
  position: absolute;
  inset: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(145deg, #1d4ed8 0%, var(--blue) 38%, var(--teal) 100%);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body.portal-auth[data-layout="emergent"] .emergent-carousel-track {
    transition: none;
  }
}

body.portal-auth[data-layout="emergent"] .emergent-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 4px 0;
  box-sizing: border-box;
}

body.portal-auth[data-layout="emergent"] .emergent-slide-head {
  text-align: center;
}

body.portal-auth[data-layout="emergent"] .emergent-slide-avatars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

body.portal-auth[data-layout="emergent"] .emergent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #fda4af, #fb923c);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--b {
  margin-left: -14px;
  background: linear-gradient(135deg, #93c5fd, #6366f1);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--c {
  background: linear-gradient(135deg, #86efac, #22c55e);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--d {
  margin-left: -14px;
  background: linear-gradient(135deg, #fcd34d, #f97316);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--e {
  background: linear-gradient(135deg, #a5b4fc, #4f46e5);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--f {
  margin-left: -14px;
  background: linear-gradient(135deg, #5eead4, #0d9488);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--g {
  background: linear-gradient(135deg, #f9a8d4, #db2777);
}

body.portal-auth[data-layout="emergent"] .emergent-avatar--h {
  margin-left: -14px;
  background: linear-gradient(135deg, #7dd3fc, #0284c7);
}

body.portal-auth[data-layout="emergent"] .emergent-slide-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

body.portal-auth[data-layout="emergent"] .emergent-slide-title strong {
  font-weight: 800;
}

body.portal-auth[data-layout="emergent"] .emergent-slide-lede {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

body.portal-auth[data-layout="emergent"] .emergent-browser-mock {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin-top: auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
}

body.portal-auth[data-layout="emergent"] .emergent-browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-auth[data-layout="emergent"] .emergent-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

body.portal-auth[data-layout="emergent"] .emergent-browser-mock img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
}

body.portal-auth[data-layout="emergent"] .emergent-cursor {
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.portal-auth[data-layout="emergent"] .emergent-cursor--green {
  left: 18%;
  top: 42%;
  background: #22c55e;
}

body.portal-auth[data-layout="emergent"] .emergent-cursor--blue {
  right: 16%;
  top: 58%;
  background: #3b82f6;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-btn:hover {
  background: #fff;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-dot.is-active {
  width: 28px;
  background: #fff;
}

body.portal-auth[data-layout="emergent"] .emergent-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Vodafone: stack before narrow side column squeezes the form */
@media (max-width: 1024px) {
  body.portal-auth[data-layout="vodafone"] .auth-split {
    grid-template-columns: 1fr;
  }
}

/* Layouts 4–7: mobile rules live after desktop layout blocks (cascade order) */
@media (max-width: 899px) {
  body.portal-auth[data-layout="epidemic"] .auth-split,
  body.portal-auth[data-layout="zoho"] .auth-split,
  body.portal-auth[data-layout="emergent"] .auth-split {
    grid-template-columns: 1fr;
  }

  body.portal-auth[data-layout="epidemic"] .portal-main,
  body.portal-auth[data-layout="epidemic"] .auth-split-wrap,
  body.portal-auth[data-layout="epidemic"] .auth-split {
    min-height: auto;
  }

  body.portal-auth[data-layout="epidemic"] .auth-split-form {
    order: 0;
    min-height: auto;
    padding: 28px 20px 32px;
  }

  body.portal-auth[data-layout="epidemic"] .auth-split-brand {
    order: -1;
    min-height: clamp(160px, 34vw, 220px);
  }

  body.portal-auth[data-layout="klook"] .portal-main {
    padding: 20px 16px max(28px, calc(72px + env(safe-area-inset-bottom, 0px)));
    min-height: auto;
  }

  body.portal-auth[data-layout="klook"] .auth-form-inner {
    padding: 22px 18px 20px;
  }

  body.portal-auth[data-layout="klook"] .klook-lang-float {
    top: 12px;
    right: 16px;
  }

  body.portal-auth[data-layout="klook"] .klook-info-box {
    font-size: 13px;
  }

  body.portal-auth[data-layout="zoho"] .portal-main {
    padding: 20px 12px max(28px, calc(72px + env(safe-area-inset-bottom, 0px)));
    min-height: auto;
  }

  body.portal-auth[data-layout="zoho"] .auth-split {
    min-height: auto;
    display: block;
  }

  body.portal-auth[data-layout="zoho"] .auth-split-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 20px;
  }

  body.portal-auth[data-layout="zoho"] .layout-promo--zoho {
    display: none;
  }

  body.portal-auth[data-layout="emergent"] .portal-main {
    padding: 8px 0 max(24px, calc(72px + env(safe-area-inset-bottom, 0px)));
  }

  body.portal-auth[data-layout="emergent"] .auth-split-wrap {
    width: calc(100% - 20px);
  }

  body.portal-auth[data-layout="emergent"] .auth-split {
    display: grid;
    gap: 14px;
    overflow: hidden;
  }

  body.portal-auth[data-layout="emergent"] .auth-split-form {
    order: 1;
    min-height: auto;
    padding: 20px 16px;
    border-radius: 20px;
  }

  body.portal-auth[data-layout="emergent"] .auth-split-brand {
    order: 2;
    min-height: clamp(320px, 70vw, 420px);
    border-radius: 24px;
  }

  body.portal-auth[data-layout="emergent"] .emergent-showcase {
    padding: 18px 14px 14px;
    border-radius: 24px;
  }

  body.portal-auth[data-layout="emergent"] .emergent-slide-lede {
    font-size: 13px;
    max-width: none;
    padding: 0 4px;
  }

  body.portal-auth[data-layout="emergent"] .emergent-browser-mock {
    min-height: clamp(140px, 38vw, 200px);
  }

  body.portal-auth[data-layout="emergent"] .emergent-carousel-btn {
    width: 44px;
    height: 44px;
  }

  body.portal-auth[data-layout="emergent"] .emergent-carousel-dot {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    background: transparent;
  }

  body.portal-auth[data-layout="emergent"] .emergent-carousel-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
  }

  body.portal-auth[data-layout="emergent"] .emergent-carousel-dot.is-active {
    width: auto;
    background: transparent;
  }

  body.portal-auth[data-layout="emergent"] .emergent-carousel-dot.is-active::after {
    width: 24px;
    background: #fff;
  }

  body.portal-auth[data-layout="emergent"] .emergent-form-title {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
  }

  body.portal-auth[data-layout="emergent"] .auth-links {
    align-items: center;
  }
}

body.portal-auth .layout-demo-picker {
  display: none !important;
}
