.ivauth {
  --ivauth-navy: #071a34;
  --ivauth-navy-soft: #102b52;
  --ivauth-blue: #1769e0;
  --ivauth-blue-hover: #0e57bd;
  --ivauth-sky: #e7f2ff;
  --ivauth-paper: #ffffff;
  --ivauth-bg: #f2f6fb;
  --ivauth-ink: #10233f;
  --ivauth-muted: #50637d;
  --ivauth-line: #cbd8e6;
  --ivauth-danger: #a9343a;
  --ivauth-danger-bg: #fff0f1;
  --ivauth-success: #087453;
  --ivauth-success-bg: #e8f8f1;
  padding: 22px 0 38px;
  color: var(--ivauth-ink);
  color-scheme: light;
}

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

.ivauth-container {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.ivauth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.5;
}

.ivauth-alert i {
  flex: none;
  margin-top: 2px;
  font-size: 17px;
}

.ivauth-alert-error {
  color: var(--ivauth-danger);
  background: var(--ivauth-danger-bg);
  border-color: #f0c9cd;
}

.ivauth-alert-success {
  color: var(--ivauth-success);
  background: var(--ivauth-success-bg);
  border-color: #bce5d5;
}

.ivauth-client-error[hidden] {
  display: none;
}

.ivauth-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--ivauth-line);
  border-radius: 24px;
  background: var(--ivauth-paper);
  box-shadow: 0 24px 64px rgba(11, 35, 69, 0.14);
}

.ivauth-shell-register {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.38fr);
}

.ivauth-shell-compact {
  width: min(100%, 1000px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ivauth-story {
  position: relative;
  display: flex;
  min-height: 580px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 8%, rgba(91, 187, 236, 0.32), transparent 20rem),
    linear-gradient(145deg, var(--ivauth-navy) 0%, var(--ivauth-navy-soft) 100%);
}

.ivauth-shell-compact .ivauth-story {
  min-height: 490px;
}

.ivauth-story::after {
  position: absolute;
  right: -76px;
  bottom: -92px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 72px rgba(255, 255, 255, 0.02);
  content: "";
}

.ivauth-story-top,
.ivauth-story-main,
.ivauth-story-foot {
  position: relative;
  z-index: 1;
}

.ivauth-brand {
  display: inline-flex;
  width: 150px;
  height: 76px;
  align-items: center;
}

.ivauth-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.2));
}

.ivauth-story-kicker,
.ivauth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ivauth-story-kicker {
  color: #c1e4ff;
}

.ivauth-story-kicker::before,
.ivauth-kicker::before {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.ivauth-story h2 {
  max-width: 410px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.ivauth-story-main > p {
  max-width: 430px;
  margin: 17px 0 0;
  color: #d8e5f2;
  font-size: 15px;
  line-height: 1.65;
}

.ivauth-route-strip {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.ivauth-route-strip strong {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.ivauth-route-line {
  position: relative;
  display: block;
  height: 24px;
}

.ivauth-route-line::before {
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.ivauth-route-line::after {
  position: absolute;
  top: 7px;
  left: 56%;
  color: #fff;
  content: "\f072";
  font-family: FontAwesome;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -2px);
}

.ivauth-story-facts {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ivauth-story-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f6fc;
  font-size: 13px;
}

.ivauth-story-facts i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  color: #9ed5ff;
  background: rgba(255, 255, 255, 0.07);
}

.ivauth-story-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7d6e6;
  font-size: 12px;
  line-height: 1.45;
}

.ivauth-story-foot i {
  color: #78d9b0;
}

.ivauth-story-login {
  justify-content: flex-start;
}

.ivauth-story-login .ivauth-story-main {
  margin-top: auto;
}

.ivauth-story-login .ivauth-story-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ivauth-story-register {
  justify-content: flex-start;
  padding: 30px;
}

.ivauth-story-register .ivauth-story-main {
  margin-top: 30px;
}

.ivauth-story-register h2 {
  font-size: clamp(30px, 3.4vw, 40px);
}

.ivauth-story-register .ivauth-story-main > p {
  margin-top: 14px;
  line-height: 1.55;
}

.ivauth-story-register .ivauth-route-strip {
  margin-top: 24px;
}

.ivauth-story-register .ivauth-story-facts {
  margin-top: 18px;
}

.ivauth-story-register .ivauth-story-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/*
 * Contrast guard for the dark story panel.
 * The legacy theme contains broad text rules marked as !important, so each
 * semantic text role is protected here without affecting the white form panel.
 */
body.iv2026-shell .ivauth .ivauth-story {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

body.iv2026-shell .ivauth .ivauth-story :where(h1, h2, h3),
body.iv2026-shell .ivauth .ivauth-story .ivauth-route-strip strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-main > p {
  color: #d8e5f2 !important;
  -webkit-text-fill-color: #d8e5f2;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-kicker {
  color: #c1e4ff !important;
  -webkit-text-fill-color: #c1e4ff;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-facts li,
body.iv2026-shell .ivauth .ivauth-story .ivauth-story-facts li span,
body.iv2026-shell .ivauth .ivauth-story .ivauth-story-facts li strong {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-foot,
body.iv2026-shell .ivauth .ivauth-story .ivauth-story-foot span,
body.iv2026-shell .ivauth .ivauth-story .ivauth-story-foot strong {
  color: #c7d6e6 !important;
  -webkit-text-fill-color: #c7d6e6;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-facts i {
  color: #9ed5ff !important;
  -webkit-text-fill-color: #9ed5ff;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-story-foot i {
  color: #78d9b0 !important;
  -webkit-text-fill-color: #78d9b0;
}

body.iv2026-shell .ivauth .ivauth-story .ivauth-brand,
body.iv2026-shell .ivauth .ivauth-story .ivauth-brand:hover,
body.iv2026-shell .ivauth .ivauth-story .ivauth-brand:focus {
  color: #fff !important;
  background: transparent !important;
  -webkit-text-fill-color: #fff;
}

.ivauth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 46px);
  background: #fff;
}

.ivauth-shell-register .ivauth-panel {
  justify-content: flex-start;
  padding: 25px clamp(28px, 4vw, 38px) 27px;
}

.ivauth-shell-register .ivauth-form {
  margin-top: 18px;
}

.ivauth-shell-register .ivauth-form-section + .ivauth-form-section {
  margin-top: 14px;
  padding-top: 14px;
}

.ivauth-shell-register .ivauth-section-heading {
  margin-bottom: 10px;
}

.ivauth-shell-register .ivauth-terms-register {
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ivauth-shell-register .ivauth-terms-register .ivauth-check {
  align-items: center;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 1.35;
}

.ivauth-shell-register .ivauth-terms-register .ivauth-check :where(span, a) {
  font-size: inherit;
  font-weight: 400 !important;
}

.ivauth-shell-register .ivauth-submit {
  margin-top: 12px;
}

.ivauth-shell-register .ivauth-switch {
  margin-top: 12px;
}

.ivauth-kicker {
  color: var(--ivauth-blue);
}

.ivauth-heading h1 {
  margin: 0;
  color: var(--ivauth-ink);
  font-size: clamp(28px, 3.5vw, 39px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ivauth-heading p {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--ivauth-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ivauth-form {
  margin-top: 22px;
}

.ivauth-form-section + .ivauth-form-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ivauth-line);
}

.ivauth-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ivauth-section-heading span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--ivauth-blue);
  background: var(--ivauth-sky);
}

.ivauth-section-heading strong {
  color: var(--ivauth-ink);
  font-size: 14px;
  font-weight: 650;
}

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

.ivauth-field {
  min-width: 0;
}

.ivauth-form > .ivauth-field + .ivauth-field {
  margin-top: 16px;
}

.ivauth-field-wide {
  grid-column: 1 / -1;
}

.ivauth-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  color: #1d3553;
  font-size: 13px;
  font-weight: 600;
}

.ivauth-field label small {
  color: var(--ivauth-muted);
  font-size: 12px;
  font-weight: 500;
}

.ivauth-field-label-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.ivauth-help {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid rgba(24, 119, 193, 0.24);
  border-radius: 50%;
  background: rgba(24, 119, 193, 0.09);
  color: #176da9;
  cursor: help;
  font-size: 10px;
  line-height: 1;
}

.ivauth-help:focus-visible {
  outline: 3px solid rgba(24, 119, 193, 0.2);
  outline-offset: 2px;
}

.ivauth-help-popover {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 10px);
  left: 50%;
  width: min(220px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #102d4f;
  box-shadow: 0 12px 28px rgba(8, 31, 57, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}

.ivauth-help-popover::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #102d4f;
  content: '';
  transform: translateX(-50%);
}

.ivauth-help:hover .ivauth-help-popover,
.ivauth-help:focus .ivauth-help-popover,
.ivauth-help:focus-within .ivauth-help-popover {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

body.iv2026-shell .ivauth .ivauth-help-popover {
  color: #fff !important;
  font-weight: 400 !important;
  -webkit-text-fill-color: #fff;
}

.ivauth-control-wrap {
  position: relative;
}

.ivauth-control-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  color: #7b8da4;
  font-size: 15px;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.ivauth .ivauth-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 42px 11px 44px;
  border: 1px solid #cbd8e7;
  border-radius: 12px;
  color: var(--ivauth-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(9, 34, 67, 0.02);
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  -webkit-text-fill-color: var(--ivauth-ink);
}

.ivauth .ivauth-control:hover {
  border-color: #aebfd2;
}

.ivauth .ivauth-control:focus {
  border-color: var(--ivauth-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.14);
}

.ivauth .ivauth-control::placeholder {
  color: #71839a;
  -webkit-text-fill-color: #71839a;
  opacity: 1;
}

.ivauth select.ivauth-control {
  padding-right: 38px;
  appearance: auto;
}

.ivauth select.ivauth-control option {
  color: var(--ivauth-ink);
  background: #fff;
  -webkit-text-fill-color: var(--ivauth-ink);
}

.ivauth-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #667a93;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.ivauth-password-toggle:hover,
.ivauth-password-toggle:focus-visible {
  color: var(--ivauth-blue);
  background: var(--ivauth-sky);
  outline: 0;
}

.ivauth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.ivauth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: #42566f;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.ivauth-check input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--ivauth-blue);
}

.ivauth-link {
  color: #145fbf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ivauth-link:hover,
.ivauth-link:focus-visible {
  color: #0c478e;
  text-decoration: underline;
  outline: 0;
}

button.ivauth-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.ivauth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1px solid var(--ivauth-blue);
  border-radius: 12px;
  color: #fff;
  background: var(--ivauth-blue);
  box-shadow: 0 9px 20px rgba(23, 105, 224, 0.2);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ivauth-submit:hover,
.ivauth-submit:focus-visible {
  color: #fff;
  background: var(--ivauth-blue-hover);
  border-color: var(--ivauth-blue-hover);
  box-shadow: 0 11px 24px rgba(23, 105, 224, 0.25);
  outline: 0;
  transform: translateY(-1px);
}

.ivauth-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.ivauth-submit-spinner {
  display: none;
}

.ivauth-submit.is-busy .ivauth-submit-spinner {
  display: inline-block;
}

.ivauth-submit.is-busy .ivauth-submit-icon {
  display: none;
}

.ivauth-switch {
  margin: 16px 0 0;
  color: var(--ivauth-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.ivauth-terms {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ivauth-line);
  border-radius: 12px;
  background: #f8fafc;
}

.ivauth-alert a,
.ivauth-alert-link {
  color: currentColor;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ivauth-alert a:hover,
.ivauth-alert a:focus-visible,
.ivauth-alert-link:hover,
.ivauth-alert-link:focus-visible {
  color: #071a34;
  outline: 0;
}

.ivauth-result {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  color: var(--ivauth-blue);
  background: var(--ivauth-sky);
  font-size: 28px;
}

.ivauth-result-success {
  color: var(--ivauth-success);
  background: var(--ivauth-success-bg);
}

.ivauth-result-error {
  color: var(--ivauth-danger);
  background: var(--ivauth-danger-bg);
}

.ivauth-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ivauth-result-actions .ivauth-submit {
  width: auto;
  min-width: 170px;
  margin-top: 0;
  text-decoration: none;
}

/* The global shell colors links blue, so result links need an explicit
   higher-specificity contrast rule when they are rendered as buttons. */
body.iv2026-shell .ivauth a.ivauth-submit,
body.iv2026-shell .ivauth a.ivauth-submit:visited {
  color: #fff;
}

body.iv2026-shell .ivauth a.ivauth-submit:hover,
body.iv2026-shell .ivauth a.ivauth-submit:focus-visible {
  color: #fff;
}

.ivauth-submit-secondary {
  color: var(--ivauth-blue);
  background: #fff;
  box-shadow: none;
}

body.iv2026-shell .ivauth a.ivauth-submit-secondary,
body.iv2026-shell .ivauth a.ivauth-submit-secondary:visited {
  color: var(--ivauth-blue);
}

.ivauth-submit-secondary:hover,
.ivauth-submit-secondary:focus-visible,
body.iv2026-shell .ivauth a.ivauth-submit-secondary:hover,
body.iv2026-shell .ivauth a.ivauth-submit-secondary:focus-visible {
  color: #fff;
}

.ivauth-terms a {
  color: #145fbf;
  font-weight: 600;
}

.grecaptcha-badge {
  z-index: 1080;
  visibility: visible !important;
}

@media (max-width: 920px) {
  .ivauth-shell,
  .ivauth-shell-register {
    grid-template-columns: 1fr;
  }

  .ivauth-story,
  .ivauth-shell-compact .ivauth-story {
    min-height: auto;
    padding: 24px 26px;
  }

  .ivauth-story-main {
    margin-top: 28px;
  }

  .ivauth-story-login .ivauth-story-main {
    margin-top: 28px;
  }

  .ivauth-story-register .ivauth-story-main {
    margin-top: 24px;
  }

  .ivauth-story h2 {
    max-width: 620px;
    font-size: 34px;
  }

  .ivauth-story-main > p {
    max-width: 660px;
  }

  .ivauth-story-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ivauth-story-foot {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .ivauth {
    padding: 12px 0 26px;
  }

  .ivauth-container {
    width: min(100% - 18px, 1120px);
  }

  .ivauth-shell {
    border-radius: 18px;
  }

  .ivauth-story {
    padding: 22px;
  }

  .ivauth-brand {
    width: 128px;
    height: 62px;
  }

  .ivauth-story-main {
    margin-top: 24px;
  }

  .ivauth-story h2 {
    font-size: 30px;
  }

  .ivauth-route-strip {
    margin-top: 22px;
  }

  .ivauth-story-facts {
    display: none;
  }

  .ivauth-panel,
  .ivauth-shell-register .ivauth-panel {
    padding: 27px 21px 30px;
  }

  .ivauth-form-grid {
    grid-template-columns: 1fr;
  }

  .ivauth-field-wide {
    grid-column: auto;
  }

  .ivauth-row-between {
    align-items: flex-start;
    flex-direction: column;
  }
}

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