:root {
  --auth-primary: var(--mpc-primary, #2557d6);
  --auth-primary-600: var(--mpc-primary-600, #1d47b8);
  --auth-primary-soft: var(--mpc-primary-soft, #edf3ff);
  --auth-sidebar: var(--mpc-sidebar, #0f172a);
  --auth-sidebar-2: var(--mpc-sidebar-2, #121c33);
  --auth-info: var(--mpc-info, #0ea5e9);
  --auth-text: var(--mpc-text, #172033);
  --auth-muted: var(--mpc-muted, #65758b);
  --auth-border: var(--mpc-border, #e5e7eb);
  --auth-border-strong: var(--mpc-border-strong, #d7dde8);
  --auth-canvas: #f5f7fb;
}

html,
body.auth-surface {
  min-height: 100%;
}

body.auth-surface {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--auth-text);
  background: var(--auth-canvas);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 72px clamp(56px, 8vw, 160px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .14), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0ea5e9 100%);
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 50%;
}

.auth-hero::before {
  width: 360px;
  height: 360px;
  right: -210px;
  top: -220px;
}

.auth-hero::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -245px;
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  margin: 0 auto;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 78px;
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8 55%, #0f172a);
  box-shadow: 0 12px 28px rgba(37, 87, 214, .36);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.auth-brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.auth-brand-name span {
  color: #bfdbfe;
  font-weight: 400;
}

.auth-eyebrow {
  margin-bottom: 17px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-hero h1 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 3.1vw, 3.45rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.045em;
}

.auth-hero-lead {
  max-width: 570px;
  margin: 18px 0 38px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.72;
}

.auth-benefits {
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.auth-benefit {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.auth-benefit-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, .075);
  font-size: 14px;
}

.auth-benefit strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.auth-benefit span {
  display: block;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.45;
}

.auth-hero-footer {
  margin-top: 34px;
  color: #94a3b8;
  font-size: 9.5px;
  letter-spacing: .03em;
}

.auth-access {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px;
  background:
    radial-gradient(circle at 52% 14%, rgba(37, 87, 214, .06), transparent 24rem),
    #f7f8fc;
}

.auth-access::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.50), transparent 55%);
}

.auth-card-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 445px);
}

.auth-card {
  overflow: hidden;
  border: 1px solid #e0e4ed;
  border-radius: 19px;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 24px 52px rgba(30, 41, 70, .11),
    0 2px 8px rgba(30, 41, 70, .035);
}

.auth-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2557d6 56%, #0ea5e9 100%);
}

.auth-card-body {
  padding: 31px 33px 24px;
}

.auth-card-heading {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 27px;
}

.auth-card-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  color: #2557d6;
  background: #edf3ff;
  font-size: 17px;
  line-height: 0;
}

.auth-card-kicker {
  margin: 4px 0 5px;
  color: #2557d6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-card-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
}

.auth-card-heading p {
  margin: 7px 0 0;
  color: #768399;
  font-size: 10.5px;
  line-height: 1.55;
}

.auth-form .form-label {
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 10.5px;
  font-weight: 600;
}

.auth-field {
  min-height: 47px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7ddea;
  border-radius: 11px;
  background: #eef3fb;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-field:hover {
  border-color: #c8d1e1;
  background: #f1f5fb;
}

.auth-field:focus-within {
  border-color: #2557d6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 87, 214, .14);
}

.auth-field-icon {
  width: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #8492a8;
  font-size: 12px;
}

.auth-field .form-control {
  min-height: 45px;
  padding: 0 9px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #172033;
  font-size: 11.5px;
}

.auth-field .form-control::placeholder {
  color: #8f9bb0;
}

.auth-password-toggle {
  width: 42px;
  height: 45px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8c99ad;
  transition: color .15s ease, background .15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #2557d6;
  background: rgba(255,255,255,.45);
}

.auth-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.auth-link-button,
.auth-form-actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2557d6;
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: none;
}

.auth-link-button:hover,
.auth-form-actions a:hover {
  color: var(--auth-primary-600);
  text-decoration: underline;
}

.auth-submit {
  min-height: 46px;
  margin-top: 17px;
  border: 0 !important;
  border-radius: 10px;
  color: #fff !important;
  background: #2557d6 !important;
  box-shadow: 0 12px 24px rgba(37, 87, 214, .24);
  font-size: 11.5px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  background: #1d47b8 !important;
  box-shadow: 0 14px 28px rgba(37, 87, 214, .28);
}

.auth-submit:disabled {
  transform: none;
  opacity: .72;
  box-shadow: none;
}

.auth-alert {
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 10px;
}

.auth-feedback {
  margin: -4px 0 16px;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff7f7;
  color: #b42318;
  font-size: 10px;
  line-height: 1.45;
}

.auth-card-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 33px;
  border-top: 1px solid #edf0f5;
  background: #fff;
  color: #8995a8;
  font-size: 8.8px;
}

.auth-card-footer .auth-protected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-card-footer i {
  color: #2557d6;
}

.auth-card-footer strong {
  color: #98a1b2;
  font-weight: 500;
}

.auth-client-install {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.auth-client-install .helios-client-install {
  width: auto !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 5px 10px;
  border: 1px solid #d9def0;
  border-radius: 8px;
  color: #5f6c82;
  background: rgba(255,255,255,.72);
  font-size: 9px;
  box-shadow: none;
}

.auth-client-install .helios-client-install:hover {
  color: var(--auth-primary-600);
  border-color: #c8cff1;
  background: #fff;
}

.auth-page-note {
  margin-top: 13px;
  color: #9aa5b5;
  font-size: 8.8px;
  line-height: 1.5;
  text-align: center;
}

.auth-surface--client .auth-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .14), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0ea5e9 100%);
}

.swal2-popup.mpc-login-alert-popup {
  border: 1px solid var(--auth-border) !important;
  border-radius: 17px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18) !important;
}

.swal2-confirm.mpc-login-alert-confirm,
.swal2-cancel.mpc-login-alert-cancel {
  border-radius: 9px !important;
  font-weight: 600 !important;
  padding: 8px 15px !important;
}

.swal2-confirm.mpc-login-alert-confirm {
  background: #2557d6 !important;
  color: #fff !important;
}

.swal2-cancel.mpc-login-alert-cancel {
  background: #eef2f7 !important;
  color: #334155 !important;
}


/* V210 icon alignment normalization */
.auth-surface .bi {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  vertical-align: middle;
}

.auth-surface .bi::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.auth-benefit-icon,
.auth-card-symbol,
.auth-field-icon,
.auth-password-toggle {
  line-height: 0;
}

.auth-submit > span,
.auth-protected,
.auth-client-install .helios-client-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-submit .spinner-border {
  align-self: center;
}

@media (max-width: 1050px) {
  .auth-hero {
    padding-left: 54px;
    padding-right: 54px;
  }

  .auth-hero h1 {
    font-size: 2.45rem;
  }

  .auth-access {
    padding: 32px;
  }
}

@media (max-width: 820px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
    padding: 34px 28px 30px;
  }

  .auth-hero-inner {
    width: min(100%, 570px);
  }

  .auth-brand {
    margin-bottom: 30px;
  }

  .auth-eyebrow {
    margin-bottom: 10px;
  }

  .auth-hero h1 {
    font-size: 2rem;
  }

  .auth-hero-lead {
    margin: 12px 0 0;
  }

  .auth-benefits,
  .auth-hero-footer {
    display: none;
  }

  .auth-access {
    min-height: auto;
    padding: 38px 20px 48px;
  }
}

@media (max-width: 520px) {
  .auth-hero {
    padding: 25px 20px 23px;
  }

  .auth-brand {
    margin-bottom: 20px;
  }

  .auth-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .auth-hero h1 {
    font-size: 1.72rem;
  }

  .auth-hero-lead {
    display: none;
  }

  .auth-access {
    padding: 24px 14px 34px;
  }

  .auth-card {
    border-radius: 16px;
  }

  .auth-card-body {
    padding: 27px 21px 22px;
  }

  .auth-card-heading {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 23px;
  }

  .auth-card-symbol {
    width: 39px;
    height: 39px;
  }

  .auth-card-heading h2 {
    font-size: 22px;
  }

  .auth-card-footer {
    padding-left: 21px;
    padding-right: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field,
  .auth-password-toggle,
  .auth-submit {
    transition: none;
  }
}


/* V211 exact MPC Connect Pro palette override */
body.auth-surface .auth-hero,
body.auth-surface.auth-surface--client .auth-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .14), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0ea5e9 100%) !important;
}

body.auth-surface .auth-brand-mark {
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8 55%, #0f172a) !important;
}

body.auth-surface .auth-card-accent {
  background: linear-gradient(90deg, #1d4ed8 0%, #2557d6 56%, #0ea5e9 100%) !important;
}

body.auth-surface .auth-card-kicker,
body.auth-surface .auth-link-button,
body.auth-surface .auth-form-actions a,
body.auth-surface .auth-card-footer i {
  color: #2557d6 !important;
}

body.auth-surface .auth-submit {
  background: #2557d6 !important;
}

body.auth-surface .auth-submit:hover {
  background: #1d47b8 !important;
}
