:root {
  --public-bg: #06111d;
  --public-panel: rgba(19, 32, 48, 0.88);
  --public-panel-soft: rgba(13, 25, 39, 0.78);
  --public-border: rgba(148, 163, 184, 0.14);
  --public-text: #f5f8fc;
  --public-muted: #91a4ba;
  --public-green: #19e28b;
  --public-blue: #3ab9ff;
  --public-yellow: #ffd326;
  --public-violet: #9b6cff;
  --public-red: #ff5b6b;
}

.public-portal-body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, #030b13 0%, var(--public-bg) 56%, #071420 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 110px);
  color: var(--public-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.public-brand,
.public-nav-actions,
.hero-actions,
.public-flow-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-brand {
  color: var(--public-text);
  gap: 3px;
  text-decoration: none;
}

.public-brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: transparent url("/favicon-32x32.png?v=20260624t") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  font-weight: 900;
  overflow: hidden;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand strong {
  font-size: 24px;
  letter-spacing: 0.16em;
}

.public-brand small {
  margin-top: 3px;
  color: #d6e1ed;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-nav-actions a {
  color: #dce8f4;
  font-weight: 700;
  text-decoration: none;
}

.portal-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.portal-legal-footer a {
  color: #9fb1c5;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portal-legal-footer a:hover,
.portal-legal-footer a:focus-visible {
  color: #00d6a3;
}

.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(17, 29, 43, 0.92);
  color: #dce7f4;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 20px;
  text-decoration: none;
}

.public-btn.primary,
.public-btn.compact {
  border-color: rgba(25, 226, 139, 0.74);
  background: var(--public-green);
  color: #03141d;
}

.public-btn.secondary {
  border-color: rgba(25, 226, 139, 0.35);
  color: var(--public-green);
}

.public-btn.compact {
  min-height: 40px;
  padding: 0 16px;
}

.public-btn.full {
  width: 100%;
}

.portal-entry-main {
  display: grid;
  gap: 16px;
  padding: 24px 0 46px;
}

.portal-entry-hero,
.role-auth-intro,
.role-auth-card {
  border: 1px solid var(--public-border);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(22, 37, 54, 0.92), rgba(8, 19, 31, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 54px rgba(0, 0, 0, 0.16);
}

.portal-entry-hero {
  display: grid;
  align-content: center;
  min-height: 320px;
  padding: 48px;
}

.portal-entry-hero h1,
.role-auth-intro h1 {
  max-width: 850px;
  margin: 0;
  color: var(--public-text);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.portal-entry-hero p:not(.public-kicker),
.role-auth-intro p:not(.public-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--public-muted);
  font-size: 18px;
  line-height: 1.6;
}

.portal-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-choice-card {
  display: grid;
  gap: 16px;
  min-height: 310px;
  border: 1px solid var(--public-border);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(20, 36, 53, 0.94), rgba(8, 18, 30, 0.92));
  color: var(--public-text);
  padding: 28px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-choice-card:hover {
  border-color: rgba(25, 226, 139, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(25, 226, 139, 0.14);
  color: var(--public-green);
  font-size: 20px;
  font-weight: 900;
}

.portal-choice-card.property-manager .choice-icon {
  background: rgba(58, 185, 255, 0.14);
  color: var(--public-blue);
}

.portal-choice-card.sales .choice-icon {
  background: rgba(155, 108, 255, 0.15);
  color: var(--public-violet);
}

.portal-choice-card small {
  color: var(--public-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-choice-card.property-manager small {
  color: var(--public-blue);
}

.portal-choice-card.sales small {
  color: var(--public-violet);
}

.portal-choice-card strong {
  max-width: 520px;
  font-size: 30px;
  line-height: 1.08;
}

.portal-choice-card em {
  align-self: end;
  border: 1px solid rgba(25, 226, 139, 0.44);
  border-radius: 8px;
  color: var(--public-green);
  font-style: normal;
  font-weight: 900;
  justify-self: start;
  padding: 13px 18px;
}

.portal-choice-card.property-manager em {
  border-color: rgba(58, 185, 255, 0.46);
  color: var(--public-blue);
}

.portal-choice-card.sales em {
  border-color: rgba(155, 108, 255, 0.46);
  color: var(--public-violet);
}

.portal-entry-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-entry-status div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.portal-entry-status span {
  color: var(--public-green);
  font-size: 12px;
  font-weight: 900;
}

.portal-entry-status strong {
  color: var(--public-text);
}

.portal-entry-status small {
  color: var(--public-muted);
  line-height: 1.45;
}

.role-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px 0 46px;
}

.role-auth-intro {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: 48px;
}

.role-auth-card {
  align-self: start;
  padding: 24px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  background: rgba(5, 14, 25, 0.66);
  padding: 6px;
}

.auth-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c7d5e5;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.auth-mode-tabs button.active {
  background: var(--public-green);
  color: #03141d;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
}

.public-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.landing-main {
  display: grid;
  gap: 16px;
  padding: 22px 0 46px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.82fr);
  gap: 18px;
  align-items: stretch;
  min-height: 520px;
}

.hero-copy,
.public-command-panel,
.public-role-card,
.public-flow-panel,
.signup-intro,
.signup-card {
  border: 1px solid var(--public-border);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(22, 37, 54, 0.92), rgba(8, 19, 31, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 54px rgba(0, 0, 0, 0.16);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: 56px;
}

.public-kicker {
  margin: 0 0 14px;
  color: var(--public-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.signup-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--public-text);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.hero-copy p,
.signup-intro p,
.public-role-card p,
.public-flow-panel p,
.signup-message {
  color: var(--public-muted);
}

.hero-copy > p:not(.public-kicker),
.signup-intro > p {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 30px;
}

.public-command-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
}

.public-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.public-panel-heading span,
.public-panel-heading small {
  color: var(--public-muted);
  font-size: 12px;
}

.public-panel-heading strong {
  display: block;
  margin-top: 6px;
  color: var(--public-text);
  font-size: 18px;
}

.public-metric-grid {
  display: grid;
  gap: 10px;
}

.public-metric {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 95px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.public-metric span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.public-metric.green span { background: rgba(25, 226, 139, 0.14); color: var(--public-green); }
.public-metric.blue span { background: rgba(58, 185, 255, 0.14); color: var(--public-blue); }
.public-metric.yellow span { background: rgba(255, 211, 38, 0.14); color: var(--public-yellow); }
.public-metric.violet span { background: rgba(155, 108, 255, 0.16); color: var(--public-violet); }

.public-metric strong,
.public-metric small {
  display: block;
}

.public-metric strong {
  color: var(--public-text);
}

.public-metric small {
  margin-top: 4px;
  color: var(--public-muted);
}

.public-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.public-role-card {
  min-height: 190px;
  padding: 22px;
}

.public-role-card span {
  color: var(--public-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-role-card h2,
.public-flow-panel h2 {
  margin: 14px 0 10px;
  color: var(--public-text);
  font-size: 22px;
  line-height: 1.15;
}

.public-role-card p {
  margin: 0;
  line-height: 1.55;
}

.public-flow-panel {
  justify-content: space-between;
  padding: 24px;
}

.public-flow-panel h2 {
  margin: 0;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px 0 46px;
}

.signup-intro {
  display: grid;
  align-content: center;
  padding: 48px;
}

.signup-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.signup-role-list span {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f4;
  font-weight: 700;
  padding: 13px;
}

.signup-card {
  padding: 24px;
}

.public-form {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
}

.public-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-form label {
  display: grid;
  gap: 7px;
  color: #a9b9ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-form .span-two {
  grid-column: span 2;
}

.public-form input,
.public-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--public-border);
  border-radius: 8px;
  background: rgba(5, 14, 25, 0.86);
  color: var(--public-text);
  font: inherit;
  letter-spacing: 0;
  outline: 0;
  padding: 0 12px;
  text-transform: none;
}

.public-form input:focus,
.public-form select:focus {
  border-color: rgba(25, 226, 139, 0.68);
  box-shadow: 0 0 0 3px rgba(25, 226, 139, 0.1);
}

.signup-message {
  min-height: 22px;
  margin: 0;
  font-weight: 700;
}

.signup-message[data-tone="success"] {
  color: var(--public-green);
}

.signup-message[data-tone="error"] {
  color: var(--public-red);
}

@media (max-width: 1100px) {
  .landing-hero,
  .signup-layout,
  .role-auth-layout {
    grid-template-columns: 1fr;
  }

  .public-role-grid,
  .portal-entry-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-shell {
    width: min(100% - 28px, 1480px);
  }

  .public-nav,
  .public-flow-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .public-nav-actions {
    justify-content: space-between;
  }

  .hero-copy,
  .signup-intro,
  .portal-entry-hero,
  .role-auth-intro {
    padding: 30px 24px;
  }

  .hero-copy h1,
  .signup-intro h1,
  .portal-entry-hero h1,
  .role-auth-intro h1 {
    font-size: 42px;
  }

  .public-role-grid,
  .signup-role-list,
  .public-form-grid,
  .portal-entry-status {
    grid-template-columns: 1fr;
  }

  .public-form .span-two {
    grid-column: span 1;
  }
}

.portal-access-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #020b13 url("/assets/portal-login-background.png") center / cover no-repeat fixed;
  color: #f8fbff;
}

.portal-access-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 14%, rgba(0, 238, 255, 0.16), transparent 34rem),
    linear-gradient(90deg, rgba(1, 8, 15, 0.24), rgba(1, 8, 15, 0.05) 48%, rgba(1, 8, 15, 0.18));
}

.portal-access-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  padding: 54px 0 46px;
}

.portal-access-header {
  display: flex;
  align-items: center;
  min-height: 78px;
}

.portal-access-brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: #f8fbff;
  text-decoration: none;
}

.portal-access-logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 238, 255, 0.12), rgba(0, 214, 163, 0.04)),
    url("/icons/turnly-icon-192.png") center / 62px 62px no-repeat;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 238, 255, 0.22);
}

.portal-access-brand strong,
.portal-access-brand small {
  display: block;
}

.portal-access-brand strong {
  color: #f8fbff;
  font-size: 45px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.portal-access-brand small {
  margin-top: 13px;
  color: #d9dcff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-access-main {
  display: grid;
  grid-template-columns: minmax(32rem, 0.86fr) minmax(30rem, 0.64fr);
  gap: 7.4rem;
  align-items: center;
  padding: 20px 0 36px;
}

.portal-access-copy {
  max-width: 39rem;
  padding-top: 16px;
}

.portal-access-kicker {
  margin: 0 0 15px;
  color: #19fbef;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.portal-access-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 78px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.portal-access-copy h1 span {
  display: block;
  color: #13f3ee;
}

.portal-access-lede {
  max-width: 36rem;
  margin: 22px 0 0;
  color: #d1d9ff;
  font-size: 25px;
  line-height: 1.34;
}

.portal-access-rule {
  width: 10rem;
  height: 2px;
  margin: 30px 0 30px;
  background: linear-gradient(90deg, #16fbef, rgba(22, 251, 239, 0));
}

.portal-access-benefits {
  display: grid;
  gap: 20px;
}

.portal-access-benefit {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.portal-access-benefit > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(0, 255, 235, 0.8);
  border-radius: 13px;
  background: rgba(0, 255, 235, 0.08);
  box-shadow: inset 0 0 22px rgba(0, 255, 235, 0.12), 0 18px 32px rgba(0, 0, 0, 0.28);
}

.portal-access-benefit svg,
.portal-input-wrap > svg,
.portal-password-toggle svg,
.portal-signin-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.portal-access-benefit > span svg {
  color: #13f3ee;
}

.portal-access-benefit strong,
.portal-access-benefit small {
  display: block;
}

.portal-access-benefit strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.portal-access-benefit small {
  margin-top: 5px;
  color: #d0d7f4;
  font-size: 16px;
}

.portal-signin-card {
  justify-self: end;
  width: min(100%, 39.5rem);
  min-height: 50.25rem;
  border: 1px solid rgba(19, 243, 238, 0.94);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 30, 47, 0.75), rgba(2, 17, 29, 0.67));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 42px rgba(0, 238, 255, 0.08),
    0 34px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  padding: 76px 72px 60px;
}

.portal-signin-heading h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 43px;
  font-weight: 950;
  letter-spacing: 0;
}

.portal-signin-heading p {
  margin: 12px 0 0;
  color: #bfd2ff;
  font-size: 23px;
  line-height: 1.3;
}

.portal-login-form {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.portal-login-form label {
  display: grid;
  gap: 10px;
  color: #f7faff;
  font-size: 17px;
  font-weight: 800;
}

.portal-input-wrap {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(150, 207, 255, 0.48);
  border-radius: 11px;
  background: rgba(5, 19, 34, 0.66);
  color: #d5e6ff;
  padding: 0 14px 0 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.portal-input-wrap:focus-within {
  border-color: rgba(19, 243, 238, 0.88);
  background: rgba(4, 19, 32, 0.84);
  box-shadow: 0 0 0 4px rgba(19, 243, 238, 0.1);
}

.portal-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fbff;
  font: inherit;
  font-size: 19px;
  letter-spacing: 0;
  padding: 0 10px;
}

.portal-input-wrap input::placeholder {
  color: #c5d3ef;
}

.portal-password-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #d5e6ff;
  cursor: pointer;
  padding: 0;
}

.portal-password-toggle:hover,
.portal-login-options a:hover,
.portal-support-row a:hover,
.portal-access-footer a:hover {
  color: #17fff4;
}

.portal-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.portal-remember {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 14px !important;
  color: #f7faff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.portal-remember input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(24, 255, 239, 0.84);
  border-radius: 7px;
  background: #16fbef;
  cursor: pointer;
}

.portal-remember input::before {
  content: "";
  width: 13px;
  height: 8px;
  border: solid #03141d;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) translateY(-1px);
}

.portal-remember input:not(:checked) {
  background: rgba(5, 19, 34, 0.78);
}

.portal-remember input:not(:checked)::before {
  opacity: 0;
}

.portal-login-options a,
.portal-support-row a,
.portal-access-footer a {
  color: #19fbef;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.portal-signin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 66px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #12fff2, #0be49e);
  color: #03141d;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 22px 44px rgba(0, 230, 170, 0.18);
}

.portal-signin-button:hover {
  filter: brightness(1.05);
}

.portal-signin-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.portal-auth-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #cfe0ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.portal-signin-divider {
  height: 1px;
  margin: 34px 0 32px;
  background: rgba(169, 204, 235, 0.28);
}

.portal-support-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #d9e4ff;
}

.portal-support-row > span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid #d9e4ff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 950;
}

.portal-support-row p {
  margin: 0;
  color: #d9e4ff;
  font-size: 18px;
}

.portal-access-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #f4f7ff;
  min-height: 40px;
}

.portal-access-footer span {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portal-access-footer i {
  width: 15rem;
  height: 2px;
  background: linear-gradient(90deg, #12fff2, rgba(18, 255, 242, 0));
}

.portal-access-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.portal-access-footer a {
  font-size: 13px;
}

@media (max-width: 1180px) {
  .portal-access-shell {
    width: min(100% - 40px, 920px);
    padding-top: 32px;
  }

  .portal-access-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portal-access-copy {
    max-width: 44rem;
  }

  .portal-signin-card {
    justify-self: stretch;
    width: auto;
    min-height: auto;
    padding: 44px;
  }
}

@media (max-width: 720px) {
  .portal-access-body {
    background-position: 42% center;
  }

  .portal-access-shell {
    width: min(100% - 28px, 640px);
    padding: 24px 0 28px;
  }

  .portal-access-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background-size: 48px 48px;
  }

  .portal-access-brand strong {
    font-size: 34px;
  }

  .portal-access-brand small {
    font-size: 13px;
    letter-spacing: 0.24em;
  }

  .portal-access-copy h1 {
    font-size: 52px;
  }

  .portal-access-lede {
    font-size: 20px;
  }

  .portal-access-kicker {
    font-size: 14px;
    letter-spacing: 0.24em;
  }

  .portal-access-benefit {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .portal-access-benefit > span {
    width: 52px;
    height: 52px;
  }

  .portal-signin-card {
    border-radius: 18px;
    padding: 28px 22px;
  }

  .portal-signin-heading h2 {
    font-size: 34px;
  }

  .portal-signin-heading p,
  .portal-input-wrap input,
  .portal-support-row p {
    font-size: 16px;
  }

  .portal-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .portal-signin-button {
    font-size: 20px;
  }

  .portal-access-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .portal-access-footer i {
    width: 12rem;
  }
}

/* Keep the unified portal sign-in composed inside common laptop viewports. */
@media (min-width: 1181px) {
  .portal-access-shell {
    min-height: 100svh;
    padding: clamp(18px, 3vh, 34px) 0 clamp(16px, 2.6vh, 28px);
  }

  .portal-access-header {
    min-height: 58px;
  }

  .portal-access-logo {
    width: 60px;
    height: 60px;
    background-size: 52px 52px;
  }

  .portal-access-brand strong {
    font-size: 36px;
  }

  .portal-access-brand small {
    font-size: 14px;
    margin-top: 8px;
  }

  .portal-access-main {
    gap: clamp(40px, 5vw, 88px);
    padding: 8px 0 18px;
  }

  .portal-access-copy {
    padding-top: 0;
  }

  .portal-access-kicker {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .portal-access-copy h1 {
    font-size: clamp(58px, 5vw, 70px);
  }

  .portal-access-lede {
    font-size: 21px;
    margin-top: 16px;
  }

  .portal-access-rule {
    margin: 20px 0;
  }

  .portal-access-benefits {
    gap: 14px;
  }

  .portal-access-benefit {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .portal-access-benefit > span {
    width: 50px;
    height: 50px;
  }

  .portal-access-benefit svg {
    width: 24px;
    height: 24px;
  }

  .portal-access-benefit strong {
    font-size: 18px;
  }

  .portal-access-benefit small {
    font-size: 14px;
  }

  .portal-signin-card {
    min-height: 0;
    padding: clamp(34px, 5vh, 52px) clamp(36px, 4vw, 56px);
  }

  .portal-signin-heading h2 {
    font-size: 36px;
  }

  .portal-signin-heading p {
    font-size: 19px;
    margin-top: 8px;
  }

  .portal-login-form {
    gap: 18px;
    margin-top: 26px;
  }

  .portal-login-form label {
    gap: 8px;
    font-size: 15px;
  }

  .portal-input-wrap {
    min-height: 54px;
  }

  .portal-input-wrap input {
    font-size: 17px;
  }

  .portal-login-options {
    margin-top: 0;
  }

  .portal-remember {
    font-size: 15px !important;
  }

  .portal-remember input {
    width: 27px;
    height: 27px;
  }

  .portal-login-options a {
    font-size: 15px;
  }

  .portal-signin-button {
    min-height: 56px;
    font-size: 20px;
  }

  .portal-auth-message {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
  }

  .portal-signin-divider {
    margin: 18px 0;
  }

  .portal-support-row p {
    font-size: 16px;
  }

  .portal-access-footer {
    min-height: 26px;
  }
}

@media (min-width: 1181px) and (max-height: 780px) {
  .portal-access-shell {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .portal-access-main {
    padding: 4px 0 10px;
  }

  .portal-access-copy h1 {
    font-size: 54px;
  }

  .portal-access-lede {
    font-size: 18px;
  }

  .portal-access-rule {
    margin: 16px 0;
  }

  .portal-access-benefits {
    gap: 10px;
  }

  .portal-access-benefit {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
  }

  .portal-access-benefit > span {
    width: 44px;
    height: 44px;
  }

  .portal-access-benefit strong {
    font-size: 16px;
  }

  .portal-access-benefit small {
    font-size: 13px;
  }

  .portal-signin-card {
    padding: 28px 42px;
  }

  .portal-signin-heading h2 {
    font-size: 32px;
  }

  .portal-signin-heading p {
    font-size: 17px;
  }

  .portal-login-form {
    gap: 14px;
    margin-top: 20px;
  }

  .portal-input-wrap {
    min-height: 50px;
  }

  .portal-signin-divider {
    margin: 12px 0;
  }

  .portal-access-footer {
    min-height: 20px;
  }
}
