.mxs-auth {
  --mxs-auth-bg: #ffffff;
  --mxs-auth-bg-soft: #e3e7ed;
  --mxs-auth-navy: #0a0d17;
  --mxs-auth-text: #0b0c0f;
  --mxs-auth-text-soft: #4b5158;
  --mxs-auth-text-faint: #5f6873;
  --mxs-auth-border: #e6e8ec;
  --mxs-auth-accent: #0080d0;
  --mxs-auth-accent-ink: #0074bd;
  --mxs-auth-accent-dark: #0069a8;
  --mxs-auth-radius: 16px;
  --mxs-auth-shadow: 0 8px 30px rgba(16, 18, 22, 0.06);
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--mxs-auth-bg);
  color: var(--mxs-auth-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

.mxs-auth *,
.mxs-auth *::before,
.mxs-auth *::after {
  box-sizing: border-box;
}

.mxs-auth [hidden] {
  display: none !important;
}

.mxs-auth :is(h1, h2, p) {
  margin: 0;
}

.mxs-auth a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.mxs-auth :is(button, input, select) {
  font: inherit;
  letter-spacing: inherit;
}

.mxs-auth :is(a, button, input, select, summary) {
  touch-action: manipulation;
  scroll-margin-block: 84px 20px;
}

.mxs-auth :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--mxs-auth-accent);
  outline-offset: 4px;
}

.mxs-auth ::selection {
  background: rgba(0, 128, 208, 0.18);
}

.mxs-auth .mxs-auth-container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.mxs-auth .mxs-auth-skip-link {
  position: fixed;
  top: 10px;
  left: 4%;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--mxs-auth-navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(calc(-100% - 20px));
}

.mxs-auth .mxs-auth-skip-link:focus {
  transform: none;
}

.mxs-auth .mxs-auth-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(230, 232, 236, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.mxs-auth .mxs-auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.mxs-auth .mxs-auth-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
}

.mxs-auth .mxs-auth-logo img {
  display: block;
  width: auto;
  height: 44px;
}

.mxs-auth .mxs-auth-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
}

.mxs-auth .mxs-auth-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  color: var(--mxs-auth-text-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.mxs-auth .mxs-auth-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.mxs-auth .mxs-auth-nav-links a:hover {
  color: var(--mxs-auth-accent-ink);
}

.mxs-auth .mxs-auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mxs-auth .mxs-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mxs-auth .mxs-auth-button-small {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mxs-auth .mxs-auth-button-ghost {
  background: transparent;
  border-color: var(--mxs-auth-border);
  color: var(--mxs-auth-text);
}

.mxs-auth .mxs-auth-button-ghost:hover {
  border-color: var(--mxs-auth-text);
}

.mxs-auth .mxs-auth-button-dark {
  background: var(--mxs-auth-navy);
  color: #ffffff;
}

.mxs-auth .mxs-auth-button-dark:hover {
  background: #202735;
}

.mxs-auth .mxs-auth-button-accent {
  background: var(--mxs-auth-accent-ink);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 116, 189, 0.12);
}

.mxs-auth .mxs-auth-button-accent:hover {
  background: var(--mxs-auth-accent-dark);
  box-shadow: 0 5px 16px rgba(0, 116, 189, 0.18);
}

.mxs-auth .mxs-auth-button:active {
  box-shadow: none;
}

.mxs-auth .mxs-auth-menu-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mxs-auth-border);
  border-radius: 10px;
  background: var(--mxs-auth-bg);
  color: var(--mxs-auth-text);
  cursor: pointer;
}

.mxs-auth .mxs-auth-menu-close-icon,
.mxs-auth .mxs-auth-menu-button[aria-expanded="true"] .mxs-auth-menu-open-icon {
  display: none;
}

.mxs-auth .mxs-auth-menu-button[aria-expanded="true"] .mxs-auth-menu-close-icon {
  display: block;
}

.mxs-auth .mxs-auth-preview-banner {
  background: #edf5fb;
  border-bottom: 1px solid #d4e6f3;
  color: #23485f;
}

.mxs-auth .mxs-auth-preview-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 11px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.mxs-auth .mxs-auth-preview-inner svg {
  flex-shrink: 0;
  color: var(--mxs-auth-accent-dark);
}

.mxs-auth .mxs-auth-preview-inner strong {
  font-weight: 700;
}

.mxs-auth .mxs-auth-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: 52px 56px;
  background: radial-gradient(ellipse 65% 60% at 35% 0%, rgba(0, 128, 208, 0.045), transparent 75%);
  scroll-margin-top: 84px;
}

.mxs-auth .mxs-auth-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 12, 15, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 15, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 40% 0%, #000000 10%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 65% at 40% 0%, #000000 10%, transparent 85%);
}

.mxs-auth .mxs-auth-layout {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 88px;
}

.mxs-auth .mxs-auth-brand-panel {
  padding-bottom: 36px;
}

.mxs-auth .mxs-auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mxs-auth-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mxs-auth .mxs-auth-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 2px;
  background: currentColor;
}

.mxs-auth .mxs-auth-brand-panel h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.14;
  color: var(--mxs-auth-navy);
}

.mxs-auth .mxs-auth-brand-panel h2 span {
  color: var(--mxs-auth-accent-ink);
}

.mxs-auth .mxs-auth-brand-copy {
  margin-top: 18px;
  color: var(--mxs-auth-text-soft);
  font-size: 1.025rem;
  line-height: 1.7;
}

.mxs-auth .mxs-auth-rig {
  display: block;
  width: 184px;
  max-width: 100%;
  aspect-ratio: 1400 / 1422;
  margin: 24px 0 16px 12px;
}

/* Do not download decorative desktop artwork on touch phones or narrow screens. */
@media (width > 900px) and (hover: hover) and (pointer: fine) {
  .mxs-auth .mxs-auth-rig {
    background: url('hero-rig.webp') center / contain no-repeat;
  }
}

.mxs-auth .mxs-auth-text-link {
  color: var(--mxs-auth-accent-ink);
  font-weight: 600;
}

.mxs-auth .mxs-auth-text-link:hover {
  color: var(--mxs-auth-accent-dark);
  text-decoration: underline;
}

.mxs-auth .mxs-auth-app-link,
.mxs-auth .mxs-auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.875rem;
}

.mxs-auth .mxs-auth-account {
  min-width: 0;
}

.mxs-auth .mxs-auth-card {
  padding: 32px;
  border: 1px solid var(--mxs-auth-border);
  border-radius: var(--mxs-auth-radius);
  background: var(--mxs-auth-bg);
  box-shadow: var(--mxs-auth-shadow);
}

.mxs-auth .mxs-auth-card-heading {
  margin-bottom: 26px;
}

.mxs-auth .mxs-auth-card-eyebrow {
  margin-bottom: 12px;
  color: var(--mxs-auth-text-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mxs-auth .mxs-auth-card h1 {
  color: var(--mxs-auth-navy);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.mxs-auth .mxs-auth-intro {
  margin-top: 10px;
  color: var(--mxs-auth-text-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.mxs-auth .mxs-auth-form {
  margin: 0;
}

.mxs-auth .mxs-auth-field + .mxs-auth-field {
  margin-top: 18px;
}

.mxs-auth .mxs-auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.mxs-auth .mxs-auth-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.mxs-auth .mxs-auth-field-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.mxs-auth .mxs-auth-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin-top: 8px;
  padding: 12px 15px;
  border: 1px solid #85909f;
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--mxs-auth-text);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(16, 18, 22, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mxs-auth .mxs-auth-input::placeholder {
  color: var(--mxs-auth-text-faint);
  opacity: 1;
}

.mxs-auth .mxs-auth-input:focus-visible {
  border-color: var(--mxs-auth-accent);
  outline-offset: 2px;
}

.mxs-auth .mxs-auth-input[aria-invalid="true"] {
  border-color: #b63c35;
  background: #fffafa;
}

.mxs-auth .mxs-auth-submit {
  width: 100%;
  margin-top: 24px;
  -webkit-appearance: none;
  appearance: none;
}

.mxs-auth .mxs-auth-legacy-notice {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mxs-auth-border);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.mxs-auth .mxs-auth-legacy-notice p {
  max-width: 320px;
  margin-top: 4px;
  color: var(--mxs-auth-text-faint);
}

.mxs-auth .mxs-auth-legacy-notice > a,
.mxs-auth .mxs-auth-nav > .mxs-auth-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.mxs-auth .mxs-auth-back-row {
  margin-top: 16px;
  text-align: center;
}

.mxs-auth .mxs-auth-field-note {
  margin-top: 14px;
  color: var(--mxs-auth-text-faint);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.mxs-auth .mxs-auth-context {
  margin: -8px 0 22px;
  padding: 9px 12px;
  border: 1px solid #d4e6f3;
  border-radius: 8px;
  background: #f3f8fc;
  color: #23485f;
  font-size: 0.75rem;
  font-weight: 500;
}

.mxs-auth .mxs-auth-context span {
  margin-inline: 3px;
}

.mxs-auth .mxs-mfa-instructions {
  color: var(--mxs-auth-text-soft);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.mxs-auth .mxs-mfa-instructions strong {
  color: var(--mxs-auth-text);
}

.mxs-auth .mxs-mfa-fixture-note {
  margin-top: 8px;
  color: var(--mxs-auth-text-faint);
  font-size: 0.75rem;
}

.mxs-auth .mxs-mfa-verify-form {
  margin-top: 24px;
}

.mxs-auth .mxs-mfa-code {
  height: 56px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
  text-align: center;
}

.mxs-auth .mxs-mfa-code::placeholder {
  letter-spacing: normal;
}

.mxs-auth .mfa-resend-form {
  margin-top: 12px;
}

.mxs-auth .mxs-mfa-resend {
  width: 100%;
}

.mxs-auth .mxs-auth-help {
  margin-top: 20px;
  color: var(--mxs-auth-text-faint);
  font-size: 0.8125rem;
  text-align: center;
}

.mxs-auth .mxs-auth-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  margin-left: 3px;
  padding-block: 4px;
}

.mxs-auth .mxs-auth-review {
  margin-top: 12px;
  color: var(--mxs-auth-text-faint);
  font-size: 0.75rem;
}

.mxs-auth .mxs-auth-review summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-inline: auto;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
}

.mxs-auth .mxs-auth-review summary:hover {
  color: var(--mxs-auth-text);
}

.mxs-auth .mxs-auth-review-body {
  padding: 8px 18px 18px;
  border: 1px solid var(--mxs-auth-border);
  border-radius: 12px;
  background: var(--mxs-auth-bg);
}

.mxs-auth .mxs-auth-review-pages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 18px;
}

.mxs-auth .mxs-auth-review-pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  color: var(--mxs-auth-accent-ink);
  font-weight: 600;
  text-decoration: underline;
}

.mxs-auth .mxs-auth-state-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--mxs-auth-border);
}

.mxs-auth .mxs-auth-state-control label {
  font-weight: 600;
}

.mxs-auth .mxs-auth-select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #85909f;
  border-radius: 8px;
  background: var(--mxs-auth-bg);
  color: var(--mxs-auth-text-soft);
  font-size: 1rem;
}

.mxs-auth .mxs-auth-state-control p {
  grid-column: 1 / -1;
}

.mxs-auth .mxs-auth-noscript {
  margin-top: 10px;
}

.mxs-auth .mxs-auth-sample,
.mxs-auth .mxs-auth-submit-message {
  padding: 14px 16px;
  border: 1px solid #cbdfee;
  border-radius: 10px;
  background: #f0f7fc;
  color: #23485f;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mxs-auth .mxs-auth-sample {
  margin-bottom: 24px;
}

.mxs-auth .mxs-auth-sample-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.mxs-auth .mxs-auth-sample[data-state="error"] {
  border-color: #e9c9c5;
  background: #fff5f3;
  color: #94382e;
}

.mxs-auth .mxs-auth-sample[data-state="success"] {
  border-color: #bbd9c6;
  background: #f0f8f3;
  color: #24633e;
}

.mxs-auth .mxs-auth-sample[data-state="expired"],
.mxs-auth .mxs-auth-sample[data-state="wait"] {
  border-color: #e5d3ae;
  background: #fff9eb;
  color: #795117;
}

.mxs-auth .mxs-auth-submit-message {
  margin-top: 20px;
  scroll-margin-block: 88px 24px;
}

.mxs-auth .mxs-auth-submit-message:focus {
  outline: 2px solid var(--mxs-auth-accent);
  outline-offset: 4px;
}

.mxs-auth .mxs-auth-footer {
  padding-block: 20px;
  border-top: 1px solid var(--mxs-auth-border);
  background: var(--mxs-auth-bg-soft);
}

.mxs-auth .mxs-auth-footer-inner,
.mxs-auth .mxs-auth-footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mxs-auth .mxs-auth-footer-brand {
  justify-content: flex-start;
  color: var(--mxs-auth-text-soft);
  font-size: 0.75rem;
}

.mxs-auth .mxs-auth-footer-brand img {
  height: 26px;
}

.mxs-auth .mxs-auth-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 0.8125rem;
  color: var(--mxs-auth-text-soft);
}

.mxs-auth .mxs-auth-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.mxs-auth .mxs-auth-footer-links a:hover {
  color: var(--mxs-auth-text);
  text-decoration: underline;
}

/* Keep the compact layout on phones rotated beyond the width breakpoint. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .mxs-auth .mxs-auth-header {
    position: relative;
  }

  .mxs-auth .mxs-auth-header[data-nav-ready] {
    position: sticky;
  }

  .mxs-auth .mxs-auth-nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .mxs-auth .mxs-auth-nav > .mxs-auth-logo {
    min-height: 64px;
  }

  .mxs-auth .mxs-auth-navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-block: 8px 20px;
  }

  .mxs-auth .mxs-auth-header[data-nav-ready] .mxs-auth-navigation {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    padding: 12px 4% 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--mxs-auth-border);
    background: var(--mxs-auth-bg);
    box-shadow: 0 12px 20px rgba(16, 18, 22, 0.05);
  }

  .mxs-auth .mxs-auth-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .mxs-auth .mxs-auth-nav-links a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9375rem;
  }

  .mxs-auth .mxs-auth-nav-links a:hover {
    background: #f3f7fb;
  }

  .mxs-auth .mxs-auth-nav-actions {
    padding-top: 16px;
    border-top: 1px solid var(--mxs-auth-border);
  }

  .mxs-auth .mxs-auth-nav-actions a {
    flex: 1;
    min-height: 44px;
  }

  .mxs-auth .mxs-auth-layout {
    max-width: 480px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .mxs-auth .mxs-auth-brand-panel {
    display: none;
  }

  .mxs-auth .mxs-auth-main {
    padding-block: 40px;
  }

  .mxs-auth .mxs-auth-card h1 {
    font-size: 1.875rem;
  }

  .mxs-auth .mxs-auth-footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
  }
}

@media (max-width: 560px) {
  .mxs-auth .mxs-auth-preview-inner {
    align-items: flex-start;
    gap: 9px;
    padding-block: 12px;
    font-size: 0.75rem;
  }

  .mxs-auth .mxs-auth-preview-inner svg {
    margin-top: 1px;
  }

  .mxs-auth .mxs-auth-main {
    align-items: start;
    padding-block: 28px 32px;
  }

  .mxs-auth .mxs-auth-card {
    padding: 28px 24px;
  }

  .mxs-auth .mxs-auth-card h1 {
    font-size: 1.625rem;
  }

  .mxs-auth .mxs-auth-footer-inner,
  .mxs-auth .mxs-auth-footer-brand {
    flex-direction: column;
    gap: 4px;
  }

  .mxs-auth .mxs-auth-footer-links {
    justify-content: center;
    gap: 4px 22px;
  }
}

@media (max-width: 360px) {
  .mxs-auth .mxs-auth-card {
    padding-inline: 20px;
  }

  .mxs-auth .mxs-auth-field-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mxs-auth .mxs-auth-state-control {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mxs-auth *,
  .mxs-auth *::before,
  .mxs-auth *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .mxs-auth .mxs-auth-button,
  .mxs-auth .mxs-auth-card,
  .mxs-auth .mxs-auth-sample,
  .mxs-auth .mxs-auth-submit-message {
    border: 1px solid ButtonText;
  }
}

html.mxs-auth-root {
  height: auto;
  font-size: 100%;
}

body.mxs-auth {
  height: auto;
  overflow-x: visible;
  font-size: 1rem;
}

/* Bootsnav wraps the body children even when its navigation is not used. */
body.mxs-auth > .wrapper {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

body.mxs-auth a,
body.mxs-auth #login_box :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
}

body.mxs-auth p {
  line-height: inherit;
}

body.mxs-auth :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--mxs-auth-accent) !important;
  outline-offset: 4px;
}

body.mxs-auth .mxs-auth-text-link:hover,
body.mxs-auth .mxs-auth-footer-links a:hover,
body.mxs-auth #login_box a {
  text-decoration: underline !important;
}

/* Seven verified destinations need more room than the design's preview menu. */
body.mxs-auth .mxs-auth-navigation {
  min-width: 0;
  gap: 20px;
}

body.mxs-auth .mxs-auth-nav-links {
  flex-wrap: wrap;
  gap: 0 16px;
}

body.mxs-auth .mxs-auth-nav-actions {
  flex-shrink: 0;
}

body.mxs-auth .mxs-auth-card {
  min-width: 0;
}

/* Keep the native forms, notices and scripts; replace only their presentation. */
body.mxs-auth #login_box,
body.mxs-auth #login_box .mfa-box {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mxs-auth-text);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

body.mxs-auth #login_box .content {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.mxs-auth #login_box form {
  min-width: 0;
  margin: 0;
}

/* The new shell supplies this same recovery title as its single h1. */
body.mxs-auth[data-page-kind="forgot-password"] #login_box .site-heading,
body.mxs-auth #login_box #lower > br {
  display: none;
}

body.mxs-auth #login_box label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 8px;
  color: var(--mxs-auth-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

body.mxs-auth #login_box input#username,
body.mxs-auth #login_box input#password,
body.mxs-auth #login_box input:not([type]),
body.mxs-auth #login_box input:is([type="text"], [type="password"], [type="email"], [type="tel"], [type="number"]) {
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 50px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid #85909f;
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--mxs-auth-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(16, 18, 22, 0.025);
}

body.mxs-auth #login_box input::placeholder {
  color: var(--mxs-auth-text-faint);
  opacity: 1;
}

body.mxs-auth #login_box input:focus-visible {
  border-color: var(--mxs-auth-accent);
  outline-offset: 2px;
}

body.mxs-auth #login_box input:is(.error, [aria-invalid="true"]) {
  border-color: #b63c35;
  background: #fffafa;
}

body.mxs-auth #login_box #lower {
  float: none;
  width: auto;
  height: auto;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.mxs-auth #login_box #lower label {
  float: none;
  width: auto;
  margin-left: 0;
  line-height: 1.5;
}

body.mxs-auth #login_box input[type="submit"],
body.mxs-auth #login_box button:not(.close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  height: auto;
  margin: 0;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mxs-auth-accent-ink);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 2px 6px rgba(0, 116, 189, 0.12);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.mxs-auth #login_box input[type="submit"]:hover,
body.mxs-auth #login_box button:not(.close):hover {
  background: var(--mxs-auth-accent-dark);
}

body.mxs-auth #login_box a {
  color: var(--mxs-auth-accent-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.mxs-auth #login_box #forgot-password {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 12px;
  margin-top: 12px;
  font-size: 0.8125rem;
}

body.mxs-auth #login_box :is(#forgot-password, #legacy-panel-notice) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.mxs-auth #login_box #legacy-panel-notice {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--mxs-auth-border);
  color: var(--mxs-auth-text-faint);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: left;
}

body.mxs-auth #login_box p {
  margin-bottom: 16px;
  color: inherit;
}

/* Retain the native MFA heading without competing with the shell's h1. */
body.mxs-auth #login_box .mfa-box > h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

body.mxs-auth #login_box input[name="mfa_code"] {
  height: 56px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
  text-align: center;
}

body.mxs-auth #login_box input[name="mfa_code"]::placeholder {
  letter-spacing: normal;
}

body.mxs-auth #login_box .mfa-resend-form,
body.mxs-auth #login_box form + form {
  margin-top: 12px;
}

body.mxs-auth #login_box .mfa-resend-form :is(button, input[type="submit"]) {
  border-color: var(--mxs-auth-border);
  background: transparent;
  color: var(--mxs-auth-text);
  box-shadow: none;
}

body.mxs-auth #login_box .mfa-resend-form :is(button, input[type="submit"]):hover {
  border-color: var(--mxs-auth-text);
  background: #f3f7fb;
}

body.mxs-auth #login_box .alert {
  min-width: 0;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #cbdfee;
  border-radius: 10px;
  background: #f0f7fc;
  color: #23485f;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.mxs-auth #login_box :is(.alert-danger, .alert-error) {
  border-color: #e9c9c5;
  background: #fff5f3;
  color: #94382e;
}

body.mxs-auth #login_box .alert-success {
  border-color: #bbd9c6;
  background: #f0f8f3;
  color: #24633e;
}

body.mxs-auth #login_box .alert-warning {
  border-color: #e5d3ae;
  background: #fff9eb;
  color: #795117;
}

body.mxs-auth #login_box .alert p:last-child {
  margin-bottom: 0;
}

body.mxs-auth #login_box .alert .close {
  min-width: 44px;
  min-height: 44px;
  margin: -10px -12px 0 8px;
  color: inherit;
  opacity: 1;
}

body.mxs-auth #login_box :is(label.error, span.error, div.error, .help-block, .text-danger) {
  max-width: 100%;
  margin: 8px 0 16px;
  color: #94382e;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  body.mxs-auth .mxs-auth-nav-links {
    gap: 4px;
  }

  body.mxs-auth .mxs-auth-nav-actions {
    flex-wrap: wrap;
  }

  body.mxs-auth .mxs-auth-nav-actions a {
    flex: 1 1 10rem;
    white-space: normal;
  }
}

@media (pointer: coarse) {
  body.mxs-auth .mxs-auth-brand-panel {
    display: none;
  }

  body.mxs-auth .mxs-auth-layout {
    max-width: 480px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
