/* Radius access: an ASSIX introduction, with the form available immediately. */
.login-page .guest-shell {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: #f5f6f7;
}

.login-experience {
  --login-accent: #e2001a;
  --login-accent-light: #ff6976;
  --login-accent-glow: rgb(226 0 26 / 10%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 34%);
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
}

.login-experience[data-stage="broker"] {
  --login-accent: #35a333;
  --login-accent-light: #83cb7e;
  --login-accent-glow: rgb(50 163 52 / 12%);
}

.login-experience[data-stage="radar"] {
  --login-accent: #85a8c9;
  --login-accent-light: #c5e3f4;
  --login-accent-glow: rgb(111 170 206 / 12%);
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 680px;
  padding: clamp(30px, 3.8vw, 64px) clamp(32px, 4.5vw, 80px) 30px;
  overflow: hidden;
  color: #edf4f9;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  background: radial-gradient(ellipse at 54% 40%, #163b56 0, #102b42 33%, #0a1d30 69%);
}

.login-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background: linear-gradient(120deg, transparent 24%, rgb(141 185 212 / 8%) 24.1%, transparent 24.3%), linear-gradient(120deg, transparent 72%, rgb(141 185 212 / 7%) 72.1%, transparent 72.3%);
  pointer-events: none;
}

.login-story-top,
.login-story-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Show the original wordmark in the signature; the source image stays intact. */
.login-signature { display: block; flex: 0 0 150px; width: 150px; height: 42px; overflow: hidden; }
.login-signature-logo { display: block; width: 100%; height: auto; margin-top: -13%; }
.login-story-caption { color: #b2c6d6; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; }
.login-interaction-hint { display: block; margin-top: 7px; color: #99b7cc; font-size: 8px; font-weight: 450; letter-spacing: 1.5px; text-align: right; }

.login-scene {
  position: relative;
  flex: 1 0 520px;
  min-width: 0;
  min-height: 520px;
  margin: 10px -24px 14px;
  pointer-events: none;
}

/* Only the illustration moves. Wordmarks and access controls stay still. */
.login-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-width: 0;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0);
  transform-origin: 50% 39%;
  transition: transform .18s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

.login-experience[data-interaction="active"] .login-depth { will-change: transform; }

.login-scene-grid {
  position: absolute;
  width: min(86%, 650px);
  aspect-ratio: 1;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .18;
  background-image: linear-gradient(rgb(192 215 229 / 16%) 1px, transparent 1px), linear-gradient(90deg, rgb(192 215 229 / 16%) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 0, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 68%);
}

.login-scene-halo {
  position: absolute;
  top: 39%;
  left: 50%;
  width: min(88%, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(137 180 209 / 9%), transparent 61%);
}

.login-x {
  position: absolute;
  top: 39%;
  left: 50%;
  width: min(79%, 570px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.login-x-mark { --login-x-low: .1; --login-x-high: .15; color: var(--login-accent); opacity: .1; transition: color .7s ease, opacity .7s ease; }
.login-x-stroke { stroke: currentColor; stroke-linecap: butt; opacity: 1; }
.login-x-outline { fill: none; stroke: var(--login-accent); stroke-width: .85; stroke-linejoin: miter; opacity: .17; transition: stroke .7s ease; }
.login-x-response { fill: none; stroke: #c6ddeb; stroke-width: 1.5; stroke-linejoin: miter; opacity: 0; transform: scale(.985); transform-origin: 300px 300px; }
.login-x-response[data-pulse] { animation: login-x-response .65s cubic-bezier(.2,.55,.4,1) both; }
.login-x-currents { fill: none; stroke: #bed8e9; stroke-width: 1.65; stroke-linecap: round; opacity: 0; transition: opacity .65s ease; }
.login-x-currents > path { stroke-dasharray: 8 92; stroke-dashoffset: 108; opacity: 0; }
.login-experience[data-interaction="active"]:not([data-motion="playing"]) .login-x-mark { --login-x-low: .15; --login-x-high: .22; opacity: .18; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-mark { animation: login-x-breathe 5.6s ease-in-out infinite; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-currents { opacity: .65; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-currents > path { animation: login-x-current 4.8s linear infinite; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-currents > path:nth-child(2) { animation-delay: -2.4s; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-currents > path:nth-child(3) { animation-delay: -1.1s; }
.login-experience[data-ambient="active"]:not([data-motion="playing"]) .login-x-currents > path:nth-child(4) { animation-delay: -3.5s; }
.login-experience[data-ambient="active"][data-interaction="active"] .login-x-currents { opacity: .85; }

.login-radar-wave {
  position: absolute;
  left: 50%;
  top: 39%;
  width: min(76%, 500px);
  aspect-ratio: 1;
  border: 1px solid #aac9dc;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.52);
}

.login-brand-scenes {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 0;
}

.login-brand-scene {
  position: absolute;
  inset: 58% 0 auto;
  width: 100%;
  padding: 0 12px;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  transform: translateY(13px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1), visibility .65s;
}

.login-brand-scene[data-brand-scene="radius"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-experience[data-motion="playing"] .login-brand-scene {
  opacity: 0;
  visibility: hidden;
  transform: translateY(13px);
}

.login-experience[data-stage="assix"] [data-brand-scene="assix"],
.login-experience[data-stage="broker"] [data-brand-scene="broker"],
.login-experience[data-stage="radar"] [data-brand-scene="radar"],
.login-experience[data-stage="radius"] [data-brand-scene="radius"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-scene-eyebrow {
  margin: 0 0 14px;
  color: #b2c8d9;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 2.8px;
  line-height: 1.4;
}

.login-brand-name {
  width: 100%;
  margin: 0 auto;
  color: #f5f8fc;
  line-height: 1;
}

.login-brand-name-radius { font-size: clamp(46px, 4.9vw, 74px); font-weight: 650; letter-spacing: -3px; }
.login-brand-name-radius > span { display: block; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: 5px; }

.login-brand-frame {
  display: block;
  width: min(460px, 85%);
  max-width: 100%;
  margin: 0 auto;
}
.login-brand-frame-light { aspect-ratio: 500 / 175; overflow: hidden; }
.login-brand-frame-light .login-brand-logo { margin-top: -13%; }
.login-brand-frame-surface {
  padding: 18px 24px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(0 9 18 / 18%);
}
.login-brand-frame-radar { width: min(500px, 88%); }
.login-brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }

.login-brand-description {
  margin: 20px 0 0;
  color: #c2d2df;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .1px;
}

.login-registry-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  color: #8eafc6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.login-registry-signature > i { width: 3px; height: 3px; background: #7299b4; border-radius: 50%; }

.login-story-bottom { min-height: 40px; padding-top: 20px; border-top: 1px solid rgb(170 199 220 / 17%); }
.login-brand-path { display: flex; gap: 21px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.login-brand-path > li { position: relative; color: #7f9cb2; font-size: 10px; font-weight: 500; white-space: nowrap; transition: color .65s ease; }
.login-brand-path > li + li::before { position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #49677f; content: ""; transform: translateY(-50%); }
.login-brand-path > li[data-brand-step="radius"] { color: #edf4f9; }
.login-experience[data-motion="playing"] .login-brand-path > li { color: #7f9cb2; }
.login-experience[data-stage="assix"] [data-brand-step="assix"],
.login-experience[data-stage="broker"] [data-brand-step="broker"],
.login-experience[data-stage="radar"] [data-brand-step="radar"],
.login-experience[data-stage="radius"] [data-brand-step="radius"] { color: #edf4f9; }

.login-replay {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 0 4px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #b2c8d9;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1px;
}

.login-replay svg { width: 14px; height: 14px; }
.login-replay:hover { color: #fff; border-color: transparent; background: transparent; }
.login-replay:focus-visible { outline: 2px solid #aecde3; outline-offset: 5px; }

.login-access {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 64px clamp(28px, 3.2vw, 58px) 80px;
  border-left: 1px solid rgb(8 31 49 / 10%);
  background: #f5f6f7;
}

.login-panel { width: 100%; max-width: 390px; margin: 0; }
.login-panel-brand { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 52px; padding-left: 13px; border-left: 3px solid #e2001a; line-height: 1.05; }
.login-panel-brand > span { color: #172b40; font-size: 29px; font-weight: 700; letter-spacing: -.9px; }
.login-panel-brand > small { margin-top: 7px; color: #1b517f; font-size: 9px; font-weight: 650; letter-spacing: 2.5px; }
.login-panel-eyebrow { margin: 0 0 11px; color: #526c80; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.login-panel h1 { margin: 0; color: #172b40; font-size: clamp(26px, 2.3vw, 33px); font-weight: 650; line-height: 1.2; letter-spacing: -1px; }
.login-panel-intro { margin: 14px 0 30px; color: #596b7e; font-size: 14px; line-height: 1.55; }
.login-error { margin: 0 0 22px; padding: 12px 14px; border: 1px solid #e4bcc3; border-radius: 6px; color: #97223a; background: #fff0f2; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.login-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.login-form > label { display: block; margin: 0 0 8px; color: #304a60; font-size: 12px; font-weight: 600; line-height: 1.4; }
.login-form > input { margin-bottom: 23px; }
.login-page .login-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bccad5; border-radius: 6px; background: #fff; color: #172b40; font-size: 16px; line-height: 1.5; transition: border-color .16s ease, box-shadow .16s ease; }
.login-form input:hover { border-color: #7997af; }
.login-form input:focus { border-color: #1b517f; outline: 2px solid rgb(27 81 127 / 15%); outline-offset: 1px; box-shadow: none; }
.login-form input[aria-invalid="true"] { border-color: #b53448; }
.login-password-field { position: relative; min-width: 0; }
.login-page .login-password-field > input { padding-right: 53px; }
.login-password-toggle { position: absolute; top: 50%; right: 5px; width: 39px; height: 39px; min-height: 39px; padding: 10px; transform: translateY(-50%); border: 0; border-radius: 4px; background: transparent; color: #58758b; }
.login-password-toggle:hover { border-color: transparent; background: #eff4f8; color: #1b517f; }
.login-password-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.login-password-slash { opacity: 0; }
.login-password-toggle[aria-pressed="true"] .login-password-slash { opacity: 1; }
.login-submit { display: flex; justify-content: space-between; width: 100%; min-height: 49px; margin-top: 27px; padding: 12px 17px; border: 1px solid #1b517f; border-radius: 6px; background: #1b517f; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 3px 8px rgb(27 81 127 / 10%); }
.login-submit:hover { border-color: #123e62; background: #123e62; color: #fff; }
.login-submit svg { width: 22px; height: 22px; }
.login-panel-footnote { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 24px 0 0; color: #596b7e; font-size: 10px; line-height: 1.5; }
.login-panel-footnote svg { flex-shrink: 0; width: 14px; height: 14px; }
.login-access-footer { position: absolute; bottom: 30px; left: 0; right: 0; color: #596b7e; font-size: 10px; letter-spacing: .3px; text-align: center; }

/* The introduction finishes; a slow, continuous light travels inside the X. */
.login-experience[data-motion="playing"] .login-x { animation: login-x-reveal 8.4s cubic-bezier(.22,.61,.36,1) both; }
.login-experience[data-motion="playing"] .login-x-mark { animation: login-x-presence 8.4s ease both; }
.login-experience[data-motion="playing"] .login-x-stroke { stroke-dasharray: 424; stroke-dashoffset: 424; animation: login-x-draw 1.6s cubic-bezier(.4,0,.2,1) both; }
.login-experience[data-motion="playing"] .login-x-stroke-red { animation-delay: .16s; }
.login-experience[data-motion="playing"] .login-scene-halo { animation: login-halo 8.4s ease both; }
.login-experience[data-stage="radar"] .login-radar-wave { animation: login-radar-wave 1.8s cubic-bezier(.2,.55,.4,1) both; }

@keyframes login-x-reveal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
  12% { opacity: 1; }
  72% { transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes login-x-presence { 0% { opacity: .8; } 15% { opacity: .85; } 26% { opacity: .13; } 52% { opacity: .1; } 78% { opacity: .1; } 100% { opacity: .1; } }
@keyframes login-x-draw { to { stroke-dashoffset: 0; } }
@keyframes login-halo { 0% { opacity: .35; } 45% { opacity: 1; } 100% { opacity: 1; } }
@keyframes login-radar-wave { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 22% { opacity: .55; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.17); } }
@keyframes login-x-breathe {
  0%, 100% { opacity: var(--login-x-low, .1); }
  50% { opacity: var(--login-x-high, .15); }
}
@keyframes login-x-current {
  0% { stroke-dashoffset: 108; opacity: 0; }
  12% { opacity: .65; }
  78% { opacity: .65; }
  100% { stroke-dashoffset: 8; opacity: 0; }
}
@keyframes login-x-response {
  0% { opacity: 0; transform: scale(.985); }
  24% { opacity: .42; }
  100% { opacity: 0; transform: scale(1); }
}

.login-experience[data-paused="true"] .login-depth,
.login-experience[data-paused="true"] .login-depth * { animation: none !important; transition: none !important; }
.login-experience[data-paused="true"] .login-depth { transform: none; will-change: auto; }
.login-experience[data-paused="true"] .login-x-response { opacity: 0 !important; }
.login-experience[data-paused="true"] .login-x-mark { opacity: .1 !important; }
.login-experience[data-paused="true"] .login-x-currents { opacity: 0 !important; }

@media (min-width: 1800px) {
  .login-story { padding-bottom: 38px; }
  .login-scene { flex-basis: 620px; min-height: 620px; }
  .login-x { width: min(72%, 640px); }
  .login-brand-name-radius { font-size: 82px; }
  .login-panel { max-width: 390px; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .login-experience { grid-template-columns: minmax(0, 1fr) 360px; }
  .login-story { padding-left: 28px; padding-right: 28px; }
  .login-story-caption { font-size: 9px; letter-spacing: 1.3px; }
  .login-brand-path { gap: 17px; }
  .login-brand-path > li { font-size: 9px; }
  .login-brand-path > li + li::before { left: -11px; }
  .login-access { padding-left: 29px; padding-right: 29px; }
  .login-brand-description { font-size: 14px; }
}

@media (max-width: 800px) {
  .login-experience { display: flex; flex-direction: column; }
  .login-story { min-height: 0; padding: 21px 25px 17px; }
  .login-story-top { min-height: 24px; }
  .login-signature { flex-basis: 130px; width: 130px; height: 37px; }
  .login-story-caption { font-size: 8px; letter-spacing: 1.2px; }
  .login-scene { flex: 0 0 245px; min-height: 245px; height: 245px; margin: 0 -8px; }
  .login-depth { transform-origin: 50% 37%; }
  .login-x { top: 37%; width: min(72%, 325px); }
  .login-scene-grid { top: 37%; width: min(86%, 380px); }
  .login-scene-halo, .login-radar-wave { top: 37%; width: min(88%, 350px); }
  .login-brand-scene { top: 28%; }
  .login-scene-eyebrow { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.8px; }
  .login-brand-name-radius { font-size: 43px; letter-spacing: -2px; }
  .login-brand-name-radius > span { margin-top: 7px; font-size: 8px; letter-spacing: 3px; }
  .login-brand-frame { width: min(265px, 88%); }
  .login-brand-frame-surface { padding: 12px 18px; }
  .login-brand-frame-radar { width: min(290px, 90%); }
  .login-brand-description { margin-top: 11px; font-size: 12px; line-height: 1.5; }
  .login-registry-signature { margin-top: 12px; font-size: 8px; gap: 10px; }
  .login-story-bottom { padding-top: 12px; gap: 12px; min-height: 33px; }
  .login-brand-path { gap: 15px; }
  .login-brand-path > li { font-size: 8px; }
  .login-brand-path > li + li::before { left: -9px; width: 3px; height: 3px; }
  .login-replay { min-height: 28px; font-size: 9px; gap: 4px; padding-left: 0; }
  .login-replay svg { width: 12px; height: 12px; }
  .login-access { min-height: 0; padding: 33px 28px 29px; border-left: 0; border-top: 1px solid rgb(8 31 49 / 10%); }
  .login-panel { max-width: 390px; }
  .login-panel-brand { display: none; }
  .login-panel-brand > span { font-size: 25px; }
  .login-panel h1 { font-size: 28px; }
  .login-panel-intro { margin: 11px 0 24px; font-size: 13px; }
  .login-panel-footnote { margin-top: 19px; }
  .login-access-footer { position: static; margin-top: 26px; }
}

@media (max-width: 380px) {
  .login-story { padding-left: 20px; padding-right: 20px; }
  .login-story-caption { display: none; }
  .login-brand-path { gap: 11px; }
  .login-brand-path > li { font-size: 7.5px; }
  .login-brand-path > li + li::before { left: -7px; width: 2px; height: 2px; }
  .login-replay > span { display: none; }
  .login-replay { width: 28px; padding: 4px; }
  .login-replay svg { width: 14px; height: 14px; }
  .login-access { padding-left: 23px; padding-right: 23px; }
}

@media (min-width: 801px) and (max-height: 760px) {
  .login-story { min-height: 620px; padding-top: 30px; padding-bottom: 23px; }
  .login-scene { flex-basis: 460px; min-height: 460px; }
  .login-x { width: min(73%, 470px); }
  .login-brand-scene { top: 55%; }
  .login-scene-eyebrow { margin-bottom: 10px; }
  .login-brand-description { margin-top: 14px; font-size: 14px; }
  .login-registry-signature { margin-top: 15px; }
  .login-access { padding-top: 35px; padding-bottom: 60px; }
  .login-panel-brand { margin-bottom: 32px; }
  .login-access-footer { bottom: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-experience *, .login-experience *::before, .login-experience *::after { animation: none !important; transition: none !important; }
  .login-experience .login-brand-scene { opacity: 0 !important; visibility: hidden !important; transform: none !important; }
  .login-experience .login-brand-scene[data-brand-scene="radius"] { opacity: 1 !important; visibility: visible !important; }
  .login-experience .login-x { opacity: 1; transform: translate(-50%, -50%); }
  .login-experience .login-x-mark { opacity: .1 !important; }
  .login-experience .login-x-stroke { stroke-dashoffset: 0; }
  .login-experience .login-depth { transform: none !important; will-change: auto !important; }
  .login-experience .login-x-response { opacity: 0 !important; }
  .login-experience .login-x-currents { opacity: 0 !important; }
  .login-experience .login-radar-wave, .login-experience .login-replay { display: none; }
}
