 :root {
  color-scheme: dark;
  --page: #101114;
  --panel: #191a1f;
  --panel-soft: #202127;
  --red: #d91f2b;
  --red-hover: #bd1824;
  --white: #f5f5f6;
  --muted: #a6a7ae;
  --line: #41434b;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #101114;
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
}
button, input, select { font: inherit; }
a { color: inherit; }
.login-page {
  width: min(100% - 40px, 1040px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #101114 url("/static/login-background.svg") center center / cover no-repeat;
}
.utility-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-height: 42px;
  margin-bottom: 4px;
}
.customer-care {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e7e7e9;
  font-size: 13px;
  font-weight: 600;
}
.customer-care svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.utility-divider { width: 1px; height: 25px; background: #55565c; }
.language-picker { display: inline-flex; align-items: center; gap: 9px; position: relative; cursor: pointer; }
.flag-circle {
  width: 35px;
  height: 35px;
  border: 1px solid #777982;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #24252b;
  font-size: 21px;
  overflow: hidden;
}
.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #e9e9eb;
  border-bottom: 2px solid #e9e9eb;
  transform: rotate(45deg) translateY(-2px);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.brand-illustration {
  width: min(100%, 850px);
  margin: 0 auto 2px;
  overflow: hidden;
}
.brand-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.login-card {
  width: min(100%, 650px);
  padding: 10px 44px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.card-heading { text-align: center; margin: 5px 0 17px; }
.eyebrow {
  margin: 0 0 9px;
  color: #e0444d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.card-heading h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.7px;
}
.card-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.form-field { margin-bottom: 13px; }
.form-field > label, .label-row label {
  display: block;
  margin: 0 0 8px;
  color: #e6e6e8;
  font-size: 12px;
  font-weight: 600;
}
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label-row a {
  color: #f0444c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.input-shell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid #4a4c54;
  border-radius: 12px;
  background: #24252b;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-shell:focus-within {
  border-color: #b83b43;
  background: #27282e;
  box-shadow: 0 0 0 3px rgba(217,31,43,.10);
}
.input-shell > svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #e5e5e8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.input-shell input {
  width: 100%;
  min-width: 0;
  height: 49px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.input-shell input::placeholder { color: #999ba3; opacity: 1; }
.password-toggle {
  border: 0;
  padding: 7px 0 7px 8px;
  background: transparent;
  color: #d6d6da;
  font-size: 11px;
  cursor: pointer;
}
.form-options { margin: 1px 0 14px; }
.remember-option { display: inline-flex; align-items: center; gap: 10px; color: #d9d9dc; font-size: 12px; cursor: pointer; }
.remember-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.custom-checkbox {
  width: 17px;
  height: 17px;
  border: 1px solid #777982;
  border-radius: 4px;
  background: #202127;
  display: inline-block;
  position: relative;
}
.remember-option input:checked + .custom-checkbox { background: var(--red); border-color: var(--red); }
.remember-option input:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.remember-option input:focus-visible + .custom-checkbox { outline: 2px solid #fff; outline-offset: 3px; }
.sign-in-button {
  width: 100%;
  min-height: 51px;
  padding: 0 20px;
  border: 1px solid #e22a35;
  border-radius: 11px;
  background: linear-gradient(100deg, #d51d29, #b91b25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.sign-in-button:hover { background: var(--red-hover); transform: translateY(-1px); }
.sign-in-button:disabled { opacity: .65; cursor: wait; transform: none; }
.sign-in-button svg {
  position: absolute;
  right: 19px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-message { min-height: 17px; margin: 10px 0 0; text-align: center; font-size: 11px; color: #f08b91; }
.signup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 15px;
  color: #d0d0d4;
  font-size: 12px;
}
.signup-row a { color: #f0444c; text-decoration: none; font-weight: 700; }
.trust-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 12px;
}
.trust-item {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #e3e3e6;
  font-size: 12px;
}
.trust-item + .trust-item { border-left: 1px solid #414249; }
.trust-item svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #df303b;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-footer {
  width: min(100%, 650px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 2px 0;
  margin-top: auto;
  color: #85868e;
  font-size: 10px;
}
.footer-security { display: inline-flex; align-items: center; gap: 6px; }
.security-dot { width: 6px; height: 6px; border-radius: 50%; background: #9b343b; }

@media (min-width: 1000px) {
  .login-page { padding-top: 25px; }
  .login-card { padding: 30px 48px 26px; }
}
@media (max-width: 600px) {
  .login-page { width: min(100% - 28px, 480px); padding: 8px 0 12px; }
  .utility-bar { min-height: 32px; gap: 13px; margin-bottom: 0; }
  .customer-care { gap: 7px; font-size: 11px; }
  .customer-care svg { width: 19px; height: 19px; }
  .flag-circle { width: 31px; height: 31px; font-size: 19px; }
  .brand-illustration { margin-bottom: 0; }
  .login-card { padding: 7px 20px 5px; }
  .card-heading { margin-bottom: 15px; }
  .card-heading h1 { font-size: 23px; }
  .card-subtitle { font-size: 12px; }
  .input-shell { min-height: 49px; padding: 0 12px; }
  .input-shell input { height: 47px; font-size: 13px; }
  .sign-in-button { min-height: 49px; }
  .trust-item { min-height: 50px; gap: 5px; }
  .trust-item svg { width: 22px; height: 22px; }
  .page-footer { flex-direction: column; align-items: center; text-align: center; font-size: 9px; padding-top: 10px; margin-top: auto; }
}
@media (max-width: 360px) {
  .login-page { width: calc(100% - 22px); }
  .login-card { padding: 6px 15px 4px; }
  .customer-care { font-size: 10px; }
  .card-heading h1 { font-size: 21px; }
  .signup-row { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Interactive Brokers — EXTRA-COMPACT RESPONSIVE OVERRIDES */
.login-page {
  width: min(100% - 32px, 760px);
  padding: 8px 0 12px;
}
.utility-bar {
  min-height: 30px;
  margin-bottom: 0;
  gap: 13px;
}
.brand-illustration {
  width: min(100%, 470px);
  margin: 0 auto -7px;
}
.login-card {
  width: min(100%, 480px);
  padding: 3px 26px 0;
}
.card-heading { margin-bottom: 11px; }
.eyebrow { margin-bottom: 5px; font-size: 9px; letter-spacing: 1.7px; }
.card-heading h1 { font-size: clamp(20px, 2.6vw, 25px); }
.card-subtitle { margin-top: 5px; font-size: 12px; }
.form-field { margin-bottom: 9px; }
.form-field > label, .label-row label { margin-bottom: 5px; font-size: 11px; }
.label-row a { font-size: 10px; }
.input-shell { min-height: 43px; padding: 0 11px; gap: 10px; border-radius: 10px; }
.input-shell > svg { flex-basis: 19px; width: 19px; height: 19px; }
.input-shell input { height: 41px; font-size: 12px; }
.password-toggle { font-size: 10px; }
.form-options { margin: 0 0 10px; }
.remember-option { gap: 8px; font-size: 11px; }
.custom-checkbox { width: 15px; height: 15px; }
.sign-in-button { min-height: 44px; border-radius: 9px; font-size: 13px; }
.sign-in-button svg { width: 19px; height: 19px; right: 15px; }
.form-message { min-height: 13px; margin: 5px 0 0; font-size: 10px; }
.signup-row { margin: 7px 0 9px; gap: 6px; font-size: 11px; }
.trust-features { padding-top: 8px; }
.trust-item { min-height: 43px; gap: 4px; font-size: 10px; }
.trust-item svg { width: 20px; height: 20px; }
.page-footer { width: min(100%, 480px); padding-top: 8px; font-size: 9px; }

@media (max-width: 600px) {
  .login-page { width: min(100% - 24px, 420px); padding: 5px 0 8px; }
  .utility-bar { min-height: 27px; gap: 10px; }
  .customer-care { gap: 6px; font-size: 10px; }
  .customer-care svg { width: 17px; height: 17px; }
  .utility-divider { height: 21px; }
  .flag-circle { width: 28px; height: 28px; font-size: 17px; }
  .language-picker { gap: 7px; }
  .brand-illustration { width: min(82%, 310px); margin: 0 auto -5px; }
  .login-card { width: 100%; padding: 2px 12px 0; }
  .card-heading { margin-bottom: 9px; }
  .card-heading h1 { font-size: 20px; line-height: 1.2; }
  .card-subtitle { font-size: 11px; }
  .form-field { margin-bottom: 8px; }
  .input-shell { min-height: 41px; padding: 0 10px; }
  .input-shell input { height: 39px; font-size: 12px; }
  .sign-in-button { min-height: 43px; }
  .signup-row { margin: 6px 0 8px; font-size: 10px; }
  .trust-features { padding-top: 7px; }
  .trust-item { min-height: 40px; font-size: 10px; }
  .trust-item svg { width: 18px; height: 18px; }
  .page-footer { padding-top: 7px; gap: 5px; }
}
@media (max-width: 360px) {
  .login-page { width: calc(100% - 20px); }
  .brand-illustration { width: min(78%, 275px); }
  .login-card { padding-left: 8px; padding-right: 8px; }
  .card-heading h1 { font-size: 18px; }
  .signup-row { font-size: 9px; }
}

/* Full-viewport background and bottom-anchored footer */
@media (max-height: 760px) { .login-page { min-height: 100svh; } }

/* CONSISTENT LOGIN INPUT BACKGROUND */

#loginForm input,
#loginForm input:focus {
    background-color: #24262b !important;
    color: #f2f2f2 !important;
    caret-color: #ffffff;
}

/* Chrome and Android autofill */
#loginForm input:-webkit-autofill,
#loginForm input:-webkit-autofill:hover,
#loginForm input:-webkit-autofill:focus,
#loginForm input:-webkit-autofill:active {
    -webkit-text-fill-color: #f2f2f2 !important;
    caret-color: #ffffff !important;

    -webkit-box-shadow: 0 0 0 1000px #24262b inset !important;
    box-shadow: 0 0 0 1000px #24262b inset !important;

    transition: background-color 999999s ease-in-out 0s;
}

/* Preserve dark background when selecting input text */
#loginForm input::selection {
    background: #555b66;
    color: #ffffff;
}


/* LOGIN INTERACTION EFFECTS: one gentle shake for both fields */
@keyframes login-field-shake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-6px); }
  32% { transform: translateX(6px); }
  48% { transform: translateX(-4px); }
  64% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.input-shell.login-input-shake {
  animation: login-field-shake 420ms ease-in-out both;
  border-color: #d93643 !important;
  box-shadow: 0 0 0 2px rgba(217, 31, 43, .13);
}

.sign-in-button.is-loading {
  cursor: wait;
  transform: none;
  opacity: 1;
}

.sign-in-button.is-loading:hover {
  transform: none;
}

.sign-in-button .login-button-spinner {
  position: absolute;
  left: 20px;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-button-spin 700ms linear infinite;
}

@keyframes login-button-spin {
  to { transform: rotate(360deg); }
}

.sign-in-button svg[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .sign-in-button .login-button-spinner {
    left: 16px;
    width: 15px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .input-shell.login-input-shake {
    animation: none;
  }
  .sign-in-button .login-button-spinner {
    animation-duration: 1.4s;
  }
}


/* ==========================================================
   CUSTOMER TYPOGRAPHY REFINEMENT
   Trust Wallet-inspired hierarchy; existing font sizes kept.
   ========================================================== */
:where(h1,h2,h3,h4,h5,h6) {
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}
:where(h1,h2,h3,h4,h5,h6) strong,
:where(h1,h2,h3,h4,h5,h6) b {
  font-weight: 800;
}
:where(p, label, small, .muted, .subtitle, .description) {
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}
:where([class*="balance"], [class*="amount"], [class*="price"],
       [class*="value"], [class*="total"], [class*="currency"],
       [data-money], .act-row strong, .act-detail-hero b) {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "kern" 1;
  font-kerning: normal;
  letter-spacing: -0.018em;
}


/* =========================================================
   Interactive Brokers — native website text-selection policy
   Prevent accidental long-press selection on app content.
   Keep normal editing, selection and paste inside form fields.
   ========================================================= */
html,
body,
body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"],
[contenteditable=""],
[contenteditable="plaintext-only"] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

input *,
textarea *,
select *,
[contenteditable="true"] *,
[contenteditable=""] *,
[contenteditable="plaintext-only"] * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

img,
svg,
picture,
video,
canvas {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Login language picker: compact custom sheet matching the platform selectors. */
.language-picker-trigger{display:flex;align-items:center;gap:9px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.language-picker-trigger .flag-circle{flex:0 0 35px}
.language-picker-backdrop{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(3,4,8,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.language-picker-backdrop[hidden]{display:none!important}
.language-picker-panel{width:min(100%,460px);max-height:min(78dvh,680px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:25px;background:#15171e;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.language-picker-panel header{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid rgba(255,255,255,.08)}
.language-picker-panel header h2{margin:0;font-size:17px}.language-picker-panel header p{margin:4px 0 0;color:#9da2ae;font-size:11px}
.language-picker-close{width:35px;height:35px;border:1px solid rgba(255,255,255,.1);border-radius:50%;background:#242731;color:#fff;font-size:22px}
.language-picker-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.language-option{min-width:0;min-height:52px;display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid rgba(255,255,255,.075);border-radius:13px;background:#101219;color:#f4f5f8;text-align:left;font:inherit;cursor:pointer}
.language-option .language-flag{font-size:21px;flex:0 0 25px}.language-option span:last-child{min-width:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.language-option[aria-selected=true]{border-color:#e51f3d;background:rgba(229,31,61,.16);box-shadow:inset 0 0 0 1px rgba(229,31,61,.22)}
@media(max-width:360px){.language-picker-options{gap:6px;padding:9px}.language-option{padding:8px 7px;gap:6px}.language-option span:last-child{font-size:11px}}

/* =========================================================
   Interactive Brokers — CINEMATIC LOGIN ENTRANCE
   Animation only: preserves existing login markup and layout.
   ========================================================= */
@keyframes ibBrandReveal {
  0% { opacity: 0; transform: translateY(12px) scale(.975); filter: blur(5px); }
  65% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes ibLoginRise {
  0% { opacity: 0; transform: translate3d(0, 42px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes ibLoginFade {
  0% { opacity: 0; transform: translate3d(0, 18px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Logo/brand always stays visible; it reveals first. */
.login-page .brand-illustration {
  opacity: 0;
  animation: ibBrandReveal 850ms cubic-bezier(.2,.75,.25,1) 120ms both;
  will-change: opacity, transform, filter;
}

/* Login content rises in after the brand has appeared. */
.login-page .card-heading {
  opacity: 0;
  animation: ibLoginFade 620ms cubic-bezier(.2,.75,.25,1) 760ms both;
}
.login-page #loginForm .form-field:first-child {
  opacity: 0;
  animation: ibLoginRise 680ms cubic-bezier(.18,.72,.25,1) 980ms both;
}
.login-page #loginForm .form-field:nth-child(2) {
  opacity: 0;
  animation: ibLoginRise 680ms cubic-bezier(.18,.72,.25,1) 1160ms both;
}
.login-page #loginForm .form-options {
  opacity: 0;
  animation: ibLoginRise 620ms cubic-bezier(.18,.72,.25,1) 1320ms both;
}
.login-page #loginForm .sign-in-button {
  opacity: 0;
  animation: ibLoginRise 620ms cubic-bezier(.18,.72,.25,1) 1450ms both;
}
.login-page #loginForm .form-message,
.login-page .signup-row,
.login-page .trust-features,
.login-page .page-footer {
  opacity: 0;
  animation: ibLoginFade 600ms ease-out 1580ms both;
}

/* Keep the entrance elegant on compact mobile screens. */
@media (max-width: 600px) {
  .login-page .brand-illustration {
    animation-duration: 780ms;
  }
  .login-page #loginForm .form-field:first-child {
    animation-delay: 900ms;
  }
  .login-page #loginForm .form-field:nth-child(2) {
    animation-delay: 1080ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .brand-illustration,
  .login-page .card-heading,
  .login-page #loginForm .form-field,
  .login-page #loginForm .form-options,
  .login-page #loginForm .sign-in-button,
  .login-page #loginForm .form-message,
  .login-page .signup-row,
  .login-page .trust-features,
  .login-page .page-footer {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}



/* =========================================================
   Interactive Brokers — PRE-LOGIN BRAND SPLASH
   The existing login entrance animations are paused until
   the splash has completed, then run normally from the start.
   ========================================================= */
.ib-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 43%, rgba(191, 20, 38, .13), transparent 43%),
    radial-gradient(ellipse at 50% 100%, rgba(74, 18, 25, .15), transparent 55%),
    #0b0c10;
  opacity: 1;
  visibility: visible;
  transition: opacity 720ms cubic-bezier(.22,.72,.24,1), visibility 720ms;
  isolation: isolate;
}
.ib-splash-screen::before {
  content: "";
  position: absolute;
  width: min(76vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(230, 39, 55, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(230,39,55,.018), 0 0 0 68px rgba(230,39,55,.012);
  animation: ibSplashHalo 3.2s ease-in-out infinite;
  pointer-events: none;
}
.ib-splash-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: ibSplashBrandIn 1050ms cubic-bezier(.18,.76,.25,1) both;
}
.ib-splash-logo {
  display: block;
  width: min(100%, 510px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.35));
}
.ib-splash-caption {
  margin-top: clamp(22px, 5vh, 42px);
  color: rgba(238, 239, 243, .68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .34em;
  line-height: 1.6;
}
.ib-splash-loader {
  display: block;
  width: 74px;
  height: 2px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}
.ib-splash-loader i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #ed2638;
  box-shadow: 0 0 12px rgba(237,38,56,.65);
  animation: ibSplashProgress 1.45s cubic-bezier(.45,.05,.55,.95) infinite;
}
.ib-splash-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.ib-splash-active { overflow: hidden; }
body.ib-splash-active .login-page .brand-illustration,
body.ib-splash-active .login-page .card-heading,
body.ib-splash-active .login-page #loginForm .form-field,
body.ib-splash-active .login-page #loginForm .form-options,
body.ib-splash-active .login-page #loginForm .sign-in-button,
body.ib-splash-active .login-page #loginForm .form-message,
body.ib-splash-active .login-page .signup-row,
body.ib-splash-active .login-page .trust-features,
body.ib-splash-active .login-page .page-footer {
  animation-play-state: paused !important;
}
@keyframes ibSplashBrandIn {
  0% { opacity: 0; transform: translateY(18px) scale(.975); filter: blur(7px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes ibSplashHalo {
  0%, 100% { transform: scale(.96); opacity: .55; }
  50% { transform: scale(1.035); opacity: 1; }
}
@keyframes ibSplashProgress {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(250%); }
}
@media (max-width: 600px) {
  .ib-splash-content { width: min(100%, 420px); }
  .ib-splash-logo { width: min(100%, 390px); }
  .ib-splash-caption { font-size: 9px; letter-spacing: .28em; }
}
@media (prefers-reduced-motion: reduce) {
  .ib-splash-screen,
  .ib-splash-content,
  .ib-splash-screen::before,
  .ib-splash-loader i {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   IBKR PREMIUM BRAND IDENTITY — LOGIN + PRE-LOGIN INTRO
   ========================================================= */
:root {
  --page: #15151d;
}
html, body {
  background-color: #15151d;
}
.login-page::before {
  background-color: #15151d;
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(94, 78, 119, .13), transparent 48%),
    radial-gradient(ellipse at 8% 88%, rgba(165, 24, 43, .07), transparent 42%);
  background-position: center, center;
  background-size: cover, cover;
}
.ibkr-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  margin: 0 auto 8px;
}
.ibkr-brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ibkr-wordmark {
  display: block;
  color: #f7f6fb;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(34px, 8vw, 58px);
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(255,255,255,.05),
    0 8px 28px rgba(0,0,0,.42);
}
.ibkr-brand-lockup .ibkr-wordmark {
  margin-top: -3px;
  padding: 4px 18px 12px;
  background: linear-gradient(180deg, rgba(21,21,29,.96), rgba(21,21,29,.72));
  border-bottom: 1px solid rgba(220, 45, 62, .35);
}
.ib-splash-screen {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(115, 91, 146, .16), transparent 48%),
    radial-gradient(ellipse at 50% 100%, rgba(174, 26, 47, .12), transparent 56%),
    #15151d;
}
.ib-splash-screen::before {
  border-color: rgba(224, 48, 67, .18);
  box-shadow: 0 0 0 34px rgba(230,55,75,.025), 0 0 0 68px rgba(230,55,75,.015);
}
.ib-splash-content {
  width: min(100%, 540px);
  gap: 0;
}
.ib-splash-logo {
  width: min(100%, 510px);
  border-radius: 4px;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.48));
}
.ibkr-splash-wordmark {
  margin-top: 4px;
  font-size: clamp(46px, 11vw, 72px);
  letter-spacing: .12em;
  background: linear-gradient(180deg, #fff 0%, #dedbe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.38));
}
.ib-splash-caption {
  margin-top: 22px;
  color: rgba(235,232,243,.72);
  letter-spacing: .38em;
}
.page-footer {
  gap: 0;
}
.page-footer > span:first-child:not(.footer-security) {
  display: none !important;
}
@media (max-width: 600px) {
  .ibkr-brand-lockup { width: min(100%, 620px); }
  .ibkr-brand-lockup .ibkr-wordmark {
    font-size: clamp(38px, 10vw, 54px);
    padding-bottom: 10px;
  }
  .ib-splash-logo { width: min(100%, 390px); }
  .ibkr-splash-wordmark { font-size: clamp(48px, 13vw, 66px); }
}



/* =========================================================
   IBKR LIGHT BLUE LOGIN REDESIGN
   Reference-inspired layout; existing authentication retained.
   ========================================================= */
:root {
  color-scheme: light;
  --page: #f0f1f3;
  --panel: #ffffff;
  --panel-soft: #f7f8fa;
  --blue: #075ac8;
  --blue-hover: #064ca8;
  --ink: #20232a;
  --muted: #707780;
  --line: #c8cbd0;
}
html, body {
  min-height: 100%;
  background: #f0f1f3 !important;
  color: var(--ink);
}
body { color-scheme: light; }
.login-page {
  width: min(100% - 36px, 760px);
  min-height: 100svh;
  padding: 30px 0 24px;
  color: var(--ink);
  align-items: center;
}
.login-page::before {
  position: fixed;
  background: #f0f1f3 !important;
  background-image: none !important;
}
.utility-bar {
  width: min(100%, 660px);
  min-height: 34px;
  margin: 0 auto 24px;
  color: #333943;
}
.customer-care { color: #343a43; }
.customer-care svg { stroke: currentColor; }
.utility-divider { background: #c7cbd1; }
.flag-circle {
  background: #fff;
  border-color: #c9cdd3;
}
.chevron { border-color: #626a75; }
.brand-illustration.ibkr-brand-lockup {
  width: min(100%, 520px);
  min-height: 110px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 12px auto 28px;
  overflow: visible;
}
.ibkr-brand-lockup img {
  width: 44px;
  height: 64px;
  flex: 0 0 44px;
  object-fit: contain;
}
.ibkr-brand-lockup .ibkr-wordmark {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #20232a;
  font-size: clamp(27px, 5vw, 39px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-shadow: none;
}
.login-card {
  width: min(100%, 660px);
  padding: 30px 36px 34px;
  border: 1px solid #d9dce1;
  border-top: 8px solid #075ac8;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(24, 34, 48, .17);
}
.account-mode {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 38px;
  margin: 0 0 10px;
  color: #747b84;
  font-size: 16px;
}
.account-mode-active { color: #075ac8; font-weight: 500; }
.account-mode-inactive { color: #747b84; }
.account-mode-switch {
  width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #d7dbe0;
  border-radius: 99px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.account-mode-switch span {
  width: 27px;
  height: 27px;
  border: 1px solid #d4d8de;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
}
.card-heading {
  margin: 0 0 28px;
  text-align: left;
}
.eyebrow { display: none; }
.card-heading h1 {
  color: #20232a;
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.card-subtitle { display: none; }
.form-field { margin-bottom: 24px; }
.form-field > label, .label-row label {
  margin: 0 0 9px;
  color: #252a31;
  font-size: 15px;
  font-weight: 600;
}
.label-row { align-items: center; }
.label-row a {
  color: #075ac8;
  font-size: 14px;
  font-weight: 500;
}
.input-shell {
  min-height: 76px;
  gap: 0;
  padding: 0;
  border: 1px solid #aeb4bc;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.035);
}
.input-shell:focus-within {
  border-color: #075ac8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7,90,200,.12);
}
.input-shell > svg.field-icon {
  width: 64px;
  height: 74px;
  flex: 0 0 64px;
  padding: 21px;
  border-right: 1px solid #aeb4bc;
  color: #737980;
  stroke: currentColor;
  stroke-width: 1.9;
}
.input-shell input,
#loginForm input,
#loginForm input:focus {
  height: 74px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  color: #20232a !important;
  caret-color: #075ac8;
  font-size: 18px;
}
.input-shell input::placeholder { color: #858b93; opacity: 1; }
.password-toggle {
  width: 58px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  padding: 0;
  color: #242a32;
}
.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-options { margin: 4px 0 20px; }
.remember-option { color: #505761; font-size: 14px; }
.custom-checkbox {
  width: 20px;
  height: 20px;
  border-color: #8d949d;
  border-radius: 5px;
  background: #fff;
}
.remember-option input:checked + .custom-checkbox {
  background: #075ac8;
  border-color: #075ac8;
}
.sign-in-button {
  min-height: 76px;
  border: 1px solid #075ac8;
  border-radius: 7px;
  background: #075ac8;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
}
.sign-in-button:hover { background: #064ca8; }
.sign-in-button svg { width: 23px; height: 23px; }
.form-message { color: #b42332; }
.signup-row {
  margin: 20px 0 16px;
  color: #707780;
  font-size: 15px;
}
.signup-row a { color: #075ac8; }
.trust-features {
  display: none;
}
.page-footer {
  width: min(100%, 660px);
  justify-content: center;
  padding: 0;
  margin: 26px auto 0;
  color: #707780;
  font-size: 12px;
}
.security-dot { background: #075ac8; }
.client-portal-notice {
  width: min(100%, 660px);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 18px auto 0;
  padding: 20px 24px;
  border: 1px solid #d9dce1;
  background: #fff;
  box-shadow: 0 2px 5px rgba(24,34,48,.15);
  color: #292e36;
}
.client-portal-notice > svg {
  width: 34px;
  height: 42px;
  flex: 0 0 34px;
  fill: none;
  stroke: #454b54;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.client-portal-notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.client-portal-notice a {
  color: #075ac8;
  text-decoration: none;
  font-weight: 500;
}
.ib-splash-screen {
  background: #f0f1f3 !important;
  color: #20232a;
}
.ib-splash-screen::before {
  border-color: rgba(7,90,200,.12);
  box-shadow: 0 0 0 34px rgba(7,90,200,.025), 0 0 0 68px rgba(7,90,200,.015);
}
.ib-splash-logo {
  width: 58px !important;
  height: 82px;
  object-fit: contain;
  filter: none !important;
}
.ibkr-splash-wordmark {
  margin-top: 14px;
  background: none;
  color: #20232a;
  -webkit-text-fill-color: #20232a;
  filter: none;
  text-shadow: none;
  font-size: clamp(42px, 10vw, 60px);
  letter-spacing: .04em;
}
.ib-splash-caption { color: #606873; }
.ib-splash-loader { background: #d8dce2; }
.ib-splash-loader i { background: #075ac8; box-shadow: 0 0 10px rgba(7,90,200,.3); }

@media (max-width: 600px) {
  .login-page { width: calc(100% - 36px); padding: 20px 0 24px; }
  .utility-bar { width: 100%; margin-bottom: 20px; }
  .brand-illustration.ibkr-brand-lockup {
    min-height: 82px;
    gap: 10px;
    margin: 6px auto 18px;
  }
  .ibkr-brand-lockup img { width: 34px; height: 50px; flex-basis: 34px; }
  .ibkr-brand-lockup .ibkr-wordmark { font-size: clamp(27px, 7vw, 34px); }
  .login-card {
    width: 100%;
    padding: 20px 18px 24px;
    border-top-width: 7px;
  }
  .account-mode { gap: 10px; margin-bottom: 8px; font-size: 15px; }
  .card-heading { margin-bottom: 24px; }
  .card-heading h1 { font-size: 29px; }
  .form-field { margin-bottom: 22px; }
  .form-field > label, .label-row label { font-size: 14px; }
  .label-row a { font-size: 13px; }
  .input-shell { min-height: 65px; }
  .input-shell > svg.field-icon {
    width: 58px; height: 63px; flex-basis: 58px; padding: 19px;
  }
  .input-shell input, #loginForm input, #loginForm input:focus {
    height: 63px; padding: 0 16px; font-size: 16px;
  }
  .password-toggle { height: 61px; flex-basis: 50px; width: 50px; }
  .sign-in-button { min-height: 65px; font-size: 18px; }
  .signup-row { flex-wrap: wrap; margin: 18px 0 4px; font-size: 13px; }
  .client-portal-notice { gap: 14px; margin-top: 16px; padding: 16px; }
  .client-portal-notice > svg { width: 30px; height: 38px; flex-basis: 30px; }
  .client-portal-notice p { font-size: 13px; }
  .page-footer { margin-top: 22px; }
}
@media (max-width: 360px) {
  .login-page { width: calc(100% - 24px); }
  .login-card { padding-right: 13px; padding-left: 13px; }
  .input-shell > svg.field-icon { width: 50px; flex-basis: 50px; padding: 16px; }
  .input-shell input, #loginForm input, #loginForm input:focus { padding: 0 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page .brand-illustration,
  .login-page .card-heading,
  .login-page #loginForm .form-field,
  .login-page #loginForm .form-options,
  .login-page #loginForm .sign-in-button,
  .login-page #loginForm .form-message,
  .login-page .signup-row,
  .login-page .trust-features,
  .login-page .page-footer,
  .client-portal-notice {
    opacity: 1 !important; animation: none !important; transform: none !important;
  }
}

#loginForm input:-webkit-autofill,
#loginForm input:-webkit-autofill:hover,
#loginForm input:-webkit-autofill:focus,
#loginForm input:-webkit-autofill:active {
  -webkit-text-fill-color: #20232a !important;
  caret-color: #075ac8 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}
#loginForm input::selection { background: #cfe0f7; color: #20232a; }


/* IBKR mobile performance + compact viewport refinement */
@media (max-width: 600px) {
  html, body { min-height: 100%; }
  .login-page {
    width: min(100% - 24px, 480px);
    min-height: 100svh;
    padding: max(5px, env(safe-area-inset-top)) 0 max(7px, env(safe-area-inset-bottom));
    justify-content: flex-start;
  }
  .utility-bar {
    min-height: 25px;
    margin: 0 0 4px;
    gap: 9px;
  }
  .customer-care { font-size: 10px; }
  .customer-care svg { width: 17px; height: 17px; }
  .utility-divider { height: 20px; }
  .flag-circle { width: 27px; height: 27px; font-size: 16px; }
  .brand-illustration.ibkr-brand-lockup {
    min-height: 58px;
    height: 58px;
    gap: 9px;
    margin: 0 auto 7px;
  }
  .ibkr-brand-lockup img { width: 31px; height: 45px; flex-basis: 31px; }
  .ibkr-brand-lockup .ibkr-wordmark { font-size: clamp(26px, 7vw, 33px); }
  .login-card {
    width: 100%;
    padding: 12px 16px 13px;
    border-top-width: 5px;
  }
  .account-mode {
    min-height: 27px;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 13px;
  }
  .account-mode-switch { width: 48px; height: 28px; padding: 2px; }
  .account-mode-switch span { width: 22px; height: 22px; }
  .card-heading { margin: 0 0 13px; }
  .card-heading h1 { font-size: 25px; line-height: 1.15; }
  .form-field { margin-bottom: 12px; }
  .form-field > label, .label-row label { margin-bottom: 6px; font-size: 12px; }
  .label-row { gap: 7px; }
  .label-row a { font-size: 11px; white-space: nowrap; }
  .input-shell { min-height: 53px; border-radius: 5px; }
  .input-shell > svg.field-icon {
    width: 48px; height: 51px; flex-basis: 48px; padding: 14px;
  }
  .input-shell input, #loginForm input, #loginForm input:focus {
    height: 51px; padding: 0 12px; font-size: 15px;
  }
  .password-toggle { width: 44px; height: 49px; flex-basis: 44px; }
  .password-toggle svg { width: 21px; height: 21px; }
  .form-options { margin: 1px 0 12px; }
  .remember-option { gap: 8px; font-size: 12px; }
  .custom-checkbox { width: 18px; height: 18px; }
  .sign-in-button { min-height: 53px; border-radius: 6px; font-size: 16px; }
  .sign-in-button svg { width: 21px; height: 21px; right: 15px; }
  .form-message { min-height: 0; margin: 4px 0 0; font-size: 10px; }
  .signup-row { margin: 12px 0 2px; gap: 5px; font-size: 12px; }
  .trust-features { display: none; }
  .client-portal-notice {
    width: 100%;
    gap: 10px;
    margin: 9px auto 0;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(24,34,48,.12);
  }
  .client-portal-notice > svg { width: 25px; height: 31px; flex-basis: 25px; }
  .client-portal-notice p { font-size: 11px; line-height: 1.35; }
  .page-footer {
    width: 100%;
    margin: auto 0 0;
    padding: 8px 0 0;
    font-size: 9px;
  }
}
@media (max-width: 600px) and (max-height: 720px) {
  .login-page { padding-top: 3px; padding-bottom: 4px; }
  .brand-illustration.ibkr-brand-lockup { height: 49px; min-height: 49px; margin-bottom: 4px; }
  .ibkr-brand-lockup img { width: 27px; height: 40px; flex-basis: 27px; }
  .login-card { padding-top: 9px; padding-bottom: 9px; }
  .card-heading { margin-bottom: 9px; }
  .form-field { margin-bottom: 9px; }
  .input-shell, .input-shell input, #loginForm input, #loginForm input:focus { min-height: 47px; height: 47px; }
  .input-shell > svg.field-icon { height: 45px; }
  .sign-in-button { min-height: 47px; }
  .form-options { margin-bottom: 9px; }
  .signup-row { margin-top: 9px; }
  .client-portal-notice { margin-top: 6px; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .login-card { padding-left: 11px; padding-right: 11px; }
  .label-row a { font-size: 10px; }
  .client-portal-notice p { font-size: 10px; }
}


/* ==========================================================
   IBKR DARK LOGIN REFERENCE RESTORE
   Login-only visual update; preserve existing behaviour.
   ========================================================== */
:root {
  color-scheme: dark;
  --page: #08090d;
  --panel: #202027;
  --panel-soft: #24252d;
  --ink: #f4f4f6;
  --muted: #a5a6af;
  --line: #454650;
}
html, body {
  background: #08090d !important;
  color: #f4f4f6;
  color-scheme: dark;
}
.login-page {
  color: #f4f4f6;
}
.login-page::before {
  background: #08090d !important;
  background-image:
    radial-gradient(ellipse at 50% 38%, rgba(53, 48, 72, .20), transparent 58%),
    linear-gradient(180deg, #08090d 0%, #090a0f 100%) !important;
}
.utility-bar { color: #f0f0f2; }
.customer-care { color: #ededf0; }
.utility-divider { background: #454650; }
.flag-circle { background: #202127; border-color: #555762; }
.chevron { border-color: #ededf0; }

.brand-illustration.ibkr-brand-lockup {
  margin: 8px auto 16px;
}
.ibkr-brand-lockup .ibkr-wordmark {
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  text-shadow: 0 0 18px rgba(255,255,255,.12);
}
.login-card {
  width: min(100%, 660px);
  padding: 28px 36px 30px;
  border: 1px solid #383943;
  border-top: 7px solid #075ac8;
  border-radius: 5px;
  background: linear-gradient(145deg, #222229 0%, #1c1d24 100%);
  box-shadow: 0 12px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.025);
}
.account-mode { color: #c4c5cc; }
.account-mode-active { color: #76a9e9; }
.account-mode-inactive { color: #d1d1d7; }
.account-mode-switch {
  border-color: #4b4c56;
  background: #363740;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
.account-mode-switch span {
  border-color: #555762;
  background: #17181e;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.card-heading {
  margin: 0 0 22px;
  text-align: left;
}
.card-heading .eyebrow,
.card-heading .card-subtitle { display: none !important; }
.card-heading h1 {
  color: #f5f5f7;
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.form-field { margin-bottom: 17px; }
.form-field > label,
.label-row label { display: none !important; }
.label-row { display: block; }
.input-shell {
  min-height: 68px;
  gap: 0;
  padding: 0;
  border: 1px solid #484953;
  border-radius: 6px;
  background: #17181f;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
}
.input-shell:focus-within {
  border-color: #477fc2;
  background: #191a22;
  box-shadow: 0 0 0 3px rgba(7,90,200,.15);
}
.input-shell > svg.field-icon {
  width: 58px;
  height: 66px;
  flex: 0 0 58px;
  padding: 18px;
  border-right: 1px solid #484953;
  color: #e0e1e5;
  stroke: currentColor;
  stroke-width: 1.9;
}
.input-shell input,
#loginForm input,
#loginForm input:focus {
  height: 66px;
  padding: 0 17px;
  border: 0;
  border-radius: 0;
  background: #17181f !important;
  color: #f4f4f6 !important;
  caret-color: #fff;
  font-size: 17px;
}
.input-shell input::placeholder { color: #a4a5ae; opacity: 1; }
.password-toggle {
  width: 54px;
  height: 64px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ededf0;
}
.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin: 9px 0 0;
}
.forgot-password-row a {
  color: #79a9e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.forgot-password-row a:hover { color: #a5c8f4; text-decoration: underline; }
.form-options { margin: 8px 0 18px; }
.remember-option { color: #d9d9df; }
.custom-checkbox {
  border-color: #777985;
  background: #292a32;
}
.remember-option input:checked + .custom-checkbox {
  background: #075ac8;
  border-color: #075ac8;
}
.sign-in-button {
  min-height: 68px;
  border: 1px solid #075ac8;
  border-radius: 6px;
  background: #075ac8;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
.sign-in-button:hover { background: #064ca8; }
.signup-row {
  margin: 18px 0 4px;
  color: #e0e0e5;
  font-size: 14px;
}
.signup-row a { color: #80afea; }
.form-message { color: #ff8e98; }
.trust-features { display: none !important; }
.page-footer {
  color: #858792;
}
.security-dot { background: #075ac8; }
.client-portal-notice {
  width: min(100%, 660px);
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 16px auto 0;
  padding: 17px 20px;
  border: 1px solid #383943;
  border-radius: 5px;
  background: #1d1e25;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  color: #e7e7eb;
}
.client-portal-notice > svg {
  width: 32px;
  height: 40px;
  flex: 0 0 32px;
  fill: none;
  stroke: #d8d9df;
  stroke-width: 1.8;
}
.client-portal-notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.client-portal-notice a { color: #80afea; text-decoration: none; font-weight: 500; }
.ib-splash-screen {
  background: #08090d !important;
  color: #f4f4f6;
}
.ib-splash-screen::before {
  border-color: rgba(7,90,200,.12);
  box-shadow: 0 0 0 34px rgba(7,90,200,.025), 0 0 0 68px rgba(7,90,200,.015);
}
.ibkr-splash-wordmark {
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  text-shadow: 0 0 18px rgba(255,255,255,.12);
}
.ib-splash-caption { color: rgba(238,239,243,.68); }
.ib-splash-loader { background: rgba(255,255,255,.12); }
.ib-splash-loader i { background: #ed2638; box-shadow: 0 0 10px rgba(237,38,56,.45); }

@media (max-width: 600px) {
  .login-page { width: min(100% - 24px, 480px); padding: 8px 0 10px; }
  .utility-bar { margin-bottom: 5px; }
  .brand-illustration.ibkr-brand-lockup {
    min-height: 62px;
    height: 62px;
    margin: 0 auto 8px;
    gap: 9px;
  }
  .ibkr-brand-lockup img { width: 32px; height: 46px; flex-basis: 32px; }
  .ibkr-brand-lockup .ibkr-wordmark { font-size: clamp(27px, 7vw, 34px); }
  .login-card { padding: 17px 16px 17px; border-top-width: 5px; }
  .account-mode { min-height: 28px; margin-bottom: 10px; font-size: 14px; }
  .card-heading { margin-bottom: 17px; }
  .card-heading h1 { font-size: 27px; }
  .form-field { margin-bottom: 13px; }
  .input-shell { min-height: 59px; }
  .input-shell > svg.field-icon { width: 52px; height: 57px; flex-basis: 52px; padding: 16px; }
  .input-shell input, #loginForm input, #loginForm input:focus {
    height: 57px; padding: 0 14px; font-size: 16px;
  }
  .password-toggle { width: 48px; height: 55px; flex-basis: 48px; }
  .forgot-password-row { margin-top: 8px; }
  .forgot-password-row a { font-size: 13px; }
  .form-options { margin: 9px 0 15px; }
  .sign-in-button { min-height: 59px; font-size: 17px; }
  .signup-row { margin: 15px 0 2px; font-size: 13px; }
  .client-portal-notice { margin-top: 10px; padding: 11px 13px; gap: 11px; }
  .client-portal-notice > svg { width: 26px; height: 32px; flex-basis: 26px; }
  .client-portal-notice p { font-size: 11px; line-height: 1.4; }
  .page-footer { margin-top: auto; }
}
@media (max-width: 360px) {
  .login-card { padding-left: 12px; padding-right: 12px; }
  .input-shell > svg.field-icon { width: 47px; flex-basis: 47px; padding: 14px; }
  .input-shell input, #loginForm input, #loginForm input:focus { padding: 0 11px; font-size: 15px; }
  .forgot-password-row a { font-size: 12px; }
}


/* IBKR compact dark login refinement — 2026-11-10 */
@media (max-width: 600px) {
  .login-page { padding-top: 14px; padding-bottom: 12px; }
  .utility-bar { margin-bottom: 3px; }
  .brand-illustration.ibkr-brand-lockup {
    margin-top: 3px;
    margin-bottom: 5px;
  }
  .login-card {
    padding: 13px 16px 13px;
  }
  .account-mode { margin-bottom: 7px; min-height: 25px; }
  .card-heading { margin: 0 0 13px; }
  .card-heading h1 { font-size: 26px; }
  .form-field { margin-bottom: 10px; }
  .input-shell { min-height: 55px; }
  .input-shell > svg.field-icon {
    height: 53px;
    width: 49px;
    flex-basis: 49px;
    padding: 14px;
  }
  .input-shell input,
  #loginForm input,
  #loginForm input:focus {
    height: 53px;
    font-size: 15px;
    padding-left: 13px;
  }
  .password-toggle { height: 53px; width: 45px; flex-basis: 45px; }
  .forgot-password-row { margin-top: 6px; }
  .forgot-password-row a { font-size: 13px; }
  .sign-in-button { min-height: 54px; font-size: 16px; }
  .signup-row { margin: 12px 0 1px; font-size: 12px; }
  .client-portal-notice {
    margin-top: 9px;
    padding: 9px 12px;
    gap: 10px;
  }
  .client-portal-notice > svg { width: 24px; height: 29px; flex-basis: 24px; }
  .client-portal-notice p { font-size: 10.5px; line-height: 1.35; }
  .page-footer { margin-top: 18px; }
}
@media (max-width: 360px) {
  .login-page { padding-top: 11px; }
  .login-card { padding: 11px 12px; }
  .input-shell { min-height: 51px; }
  .input-shell > svg.field-icon { height: 49px; width: 45px; flex-basis: 45px; padding: 13px; }
  .input-shell input, #loginForm input, #loginForm input:focus { height: 49px; font-size: 14px; }
  .password-toggle { height: 49px; }
  .sign-in-button { min-height: 51px; }
}
/* The remember-me control is intentionally removed from the login form. */


/* IBKR login header relocation + vertical positioning (customer login only). */
@media (max-width: 600px) {
  .brand-illustration.ibkr-brand-lockup {
    margin-top: 27px !important;
    margin-bottom: 14px !important;
  }
}
@media (min-width: 601px) {
  .brand-illustration.ibkr-brand-lockup {
    margin-top: 30px !important;
    margin-bottom: 16px !important;
  }
}
/* Keep the restored animated splash on the original dark brand treatment. */
.ib-splash-screen {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(191,20,38,.13), transparent 43%),
    radial-gradient(ellipse at 50% 100%, rgba(74,18,25,.15), transparent 55%),
    #0b0c10 !important;
  color: #f4f4f6 !important;
}
.ib-splash-screen .ibkr-splash-wordmark {
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
}


/* Final login visual refinement: left brand lockup, slim blue links, filled icons. */
.brand-illustration.ibkr-brand-lockup {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: min(100%, 650px) !important;
  min-height: 66px;
  height: auto !important;
  gap: 10px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 18px;
  text-align: left !important;
}
.brand-illustration.ibkr-brand-lockup img {
  width: 40px !important;
  height: 54px !important;
  flex: 0 0 40px !important;
  object-fit: contain !important;
}
.ibkr-brand-lockup .ibkr-wordmark {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: clamp(27px, 6vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  text-align: left !important;
  text-shadow: 0 2px 14px rgba(255,255,255,.08) !important;
}
.account-mode {
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.account-mode-active,
.account-mode-inactive {
  font-weight: 400 !important;
}
.forgot-password-row a,
.signup-row a {
  color: #82afe9 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
.card-heading h1 {
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
}
.footer-security,
.page-footer .footer-security {
  display: none !important;
}
.field-icon-user,
.field-icon-lock {
  fill: #e9e9ed !important;
  stroke: none !important;
}
.input-shell > svg.field-icon-user,
.input-shell > svg.field-icon-lock {
  width: 49px !important;
  height: 53px !important;
  flex: 0 0 49px !important;
  padding: 13px !important;
}
@media (max-width: 600px) {
  .brand-illustration.ibkr-brand-lockup {
    min-height: 58px !important;
    height: 58px !important;
    margin-top: 27px !important;
    margin-bottom: 14px !important;
    padding-left: 18px !important;
    gap: 9px !important;
  }
  .brand-illustration.ibkr-brand-lockup img {
    width: 38px !important;
    height: 50px !important;
    flex-basis: 38px !important;
  }
  .ibkr-brand-lockup .ibkr-wordmark {
    font-size: 31px !important;
  }
  .account-mode { font-size: 14px !important; }
  .forgot-password-row a,
  .signup-row a { font-size: 13px !important; }
}


/* InteractiveBrokers wordmark typography — text only.
   The existing red brand-mark image and its dimensions are intentionally unchanged. */
.ibkr-brand-lockup .ibkr-wordmark {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 0 !important;
  font-size: clamp(21px, 4.8vw, 25px) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em !important;
}
.ibkr-brand-lockup .wordmark-interactive {
  font-weight: 800 !important;
}
.ibkr-brand-lockup .wordmark-brokers {
  font-weight: 300 !important;
}
.ib-splash-screen .ibkr-splash-wordmark {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  white-space: nowrap !important;
  gap: 0 !important;
  margin-top: 8px !important;
  font-size: clamp(23px, 5vw, 28px) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em !important;
}
.ib-splash-screen .wordmark-interactive { font-weight: 800 !important; }
.ib-splash-screen .wordmark-brokers { font-weight: 300 !important; }

@media (max-width: 600px) {
  .ibkr-brand-lockup .ibkr-wordmark {
    font-size: 23px !important;
  }
  .ib-splash-screen .ibkr-splash-wordmark {
    font-size: 25px !important;
  }
}
