/* The native gateway continues to own the form, validation, OAuth and 2FA. */
.bl-stage {
  --bl-ink: #080e19;
  --bl-line: #263345;
  --bl-text: #f0f4fb;
  --bl-muted: #a4b1c3;
  --bl-sky: #96e3fa;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  grid-template-rows: 76px minmax(0,1fr);
  align-items: stretch !important;
  justify-content: normal !important;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 !important;
  overflow: visible !important;
  position: relative;
  isolation: isolate;
  background: var(--bl-ink);
  color: var(--bl-text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
.bl-stage > .absolute, .bl-panel > .mb-8, .bl-panel > .mt-8 { display: none !important; }
.bl-stage a:focus-visible, .bl-stage button:focus-visible {
  outline: 2px solid var(--bl-sky);
  outline-offset: 4px;
}
.bl-top {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4.2vw, 84px);
  border-bottom: 1px solid var(--bl-line);
  background: #090f1a;
}
.bl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f5f7fc;
  text-decoration: none;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -.065em;
}
.bl-brand img { width: 34px; height: 34px; }
.bl-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  text-decoration: none;
  color: #d4dfea;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: .01em;
}
.bl-out::after {
  content: "↗";
  color: var(--bl-sky);
  font: 17px/1 system-ui,sans-serif;
}
.bl-out:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.bl-scene {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  min-height: clamp(530px, 72vh, 840px);
  overflow: hidden;
  border-right: 1px solid var(--bl-line);
  background: #050c16;
}
.bl-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.bl-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(2 8 17 / 95%), transparent 24%), linear-gradient(90deg, rgb(2 8 17 / 8%), transparent 75%);
}
.bl-scene nav {
  position: absolute;
  z-index: 1;
  left: clamp(24px,4.2vw,84px);
  right: clamp(24px,3vw,60px);
  bottom: clamp(20px,4.3vh,54px);
  display: flex;
  align-items: center;
  gap: clamp(24px,3vw,52px);
  padding-top: 13px;
  border-top: 1px solid rgb(170 214 244 / 29%);
}
.bl-panel {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: min(100% - 72px, 380px) !important;
  max-width: none !important;
  min-width: 0;
  padding: 55px 0 64px;
  color: var(--bl-text);
}
.bl-panel .card-glass {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.bl-panel .card-glass .space-y-6 > .text-center { text-align: left; }
.bl-panel h2 {
  margin: 0;
  color: var(--bl-text) !important;
  font-size: clamp(34px,3.25vw,52px) !important;
  font-weight: 620;
  letter-spacing: -.06em;
  line-height: 1.09;
  text-wrap: balance;
}
.bl-panel h2 + p { margin-top: 12px; color: var(--bl-muted) !important; font-size: 15px; line-height: 1.55; }
.bl-panel .card-glass form { margin-top: 34px; }
.bl-panel .input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 580;
  color: #dce5ef;
}
.bl-panel .input {
  height: 51px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #38465b !important;
  border-radius: 9px;
  background: #101927 !important;
  color: var(--bl-text) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 16px;
}
.bl-panel .input::placeholder { color: #8a9aaf; }
.bl-panel .input:focus-visible { border-color: #86d8ef !important; outline: 3px solid rgb(89 196 229 / 18%); outline-offset: 0; }
.bl-panel .input.input-error, .bl-panel [aria-invalid=true] { border-color: #fb99aa !important; }
.bl-panel label + div svg, .bl-panel #password + button { color: #98acc6; }
.bl-panel form > div + div { margin-top: 22px; }
.bl-panel .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 27px;
  border-radius: 9px;
  border: 1px solid rgb(198 242 255 / 50%);
  background: linear-gradient(104deg, #98efff 0%, #84c5ff 55%, #a5aeff 100%) !important;
  color: #0b172b !important;
  font: inherit;
  font-weight: 690;
  box-shadow: 0 7px 25px rgb(46 131 195 / 14%);
}
.bl-panel .btn-primary:not(:disabled):hover { filter: brightness(1.08); }
.bl-panel .btn-primary:disabled { opacity: .58; }
.bl-panel .btn-secondary { border-color: var(--bl-line); background: #142030; color: var(--bl-text); }
.bl-panel a { color: var(--bl-sky) !important; }
.bl-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-panel > .mt-6 {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--bl-line);
  text-align: left;
}
.bl-panel > .mt-6:empty { display: none; }
.bl-panel > .mt-6 p { color: var(--bl-muted) !important; font-size: 14px; line-height: 1.55; }
.bl-panel .btn-secondary:focus-visible { outline-color: var(--bl-sky); }
@media (min-width: 1700px) {
  .bl-panel { width: min(100% - 100px, 430px) !important; }
}
@media (max-width: 800px) {
  .bl-stage {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: 62px auto minmax(0,1fr);
  }
  .bl-top { padding: 0 22px; }
  .bl-brand { font-size: 19px; gap: 9px; }
  .bl-brand img { width: 30px; height: 30px; }
  .bl-scene { min-height: 0; height: clamp(124px,24svh,225px); border: 0; border-bottom: 1px solid var(--bl-line); }
  .bl-scene > img { object-position: 40% 53%; }
  .bl-scene::after { background: linear-gradient(90deg,transparent 60%,rgb(4 12 23 / 28%)); }
  .bl-scene nav { display: none; }
  .bl-panel { grid-column: 1; grid-row: 3; align-self: start; width: min(100% - 44px,420px) !important; padding: 28px 0 36px; }
  .bl-panel h2 { font-size: 35px !important; }
  .bl-panel .card-glass form { margin-top: 23px; }
  .bl-panel form > div + div { margin-top: 16px; }
  .bl-panel .btn-primary { margin-top: 21px; }
  .bl-panel > .mt-6 { margin-top: 19px; padding-top: 16px; }
}
@media (max-height: 650px) and (max-width: 800px) {
  .bl-scene { height: 94px; }
}
