body.auth-active {
  overflow: hidden;
}

body.auth-active .app-shell {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.runtime-gate.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 28px;
  background: #f3f4f7;
}

.runtime-gate.auth-gate[hidden] {
  display: none;
}

.runtime-gate [hidden] {
  display: none !important;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  width: min(1160px, 100%);
  min-height: min(720px, calc(100dvh - 56px));
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(27, 37, 56, .13), 0 4px 16px rgba(27, 37, 56, .04);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 43px 25px;
  background:
    radial-gradient(ellipse at 85% 19%, rgba(255, 44, 72, .12), transparent 35%),
    linear-gradient(145deg, #fff 0%, #fff8f8 57%, #fff0f2 100%);
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(226, 29, 57, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 29, 57, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(135deg, #000 0%, transparent 82%);
  pointer-events: none;
}

.auth-showcase::after {
  position: absolute;
  right: -205px;
  bottom: -270px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(224, 17, 48, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(224, 17, 48, .025), 0 0 0 78px rgba(224, 17, 48, .02);
  content: "";
  pointer-events: none;
}

.auth-brand,
.auth-showcase-copy,
.auth-showcase-footer {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #758096;
  text-decoration: none;
}

.auth-brand img {
  display: block;
  width: 202px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.auth-brand span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.15px;
}

.auth-showcase-copy {
  width: min(100%, 470px);
  margin: auto 0;
  padding: 38px 0 28px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  padding: 8px 11px;
  border: 1px solid #f4d4d9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #9a3548;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .65px;
}

.auth-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ed1a3b;
  box-shadow: 0 0 0 4px rgba(237, 26, 59, .11);
}

.auth-showcase h2 {
  margin: 0;
  color: #17243b;
  font: 800 clamp(33px, 3.3vw, 43px)/1.1 Manrope, "DM Sans", sans-serif;
  letter-spacing: -2.1px;
}

.auth-showcase h2 em {
  color: #e31235;
  font-style: normal;
}

.auth-description {
  max-width: 385px;
  margin: 13px 0 23px;
  color: #69758a;
  font-size: 13px;
  line-height: 1.65;
}

.auth-dashboard {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(222, 226, 233, .95);
  border-radius: 15px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 19px 45px rgba(42, 51, 70, .11);
  transform: rotate(-1deg);
}

.auth-dashboard-head,
.auth-window-dots,
.auth-summary-grid,
.auth-chart-label,
.auth-chart-legend {
  display: flex;
  align-items: center;
}

.auth-dashboard-head {
  justify-content: space-between;
  color: #8893a5;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .75px;
}

.auth-window-dots {
  gap: 4px;
}

.auth-window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0cbd1;
}

.auth-window-dots i:nth-child(2) { background: #f4dfc6; }
.auth-window-dots i:nth-child(3) { background: #d2e8df; }

.auth-summary-grid {
  gap: 9px;
  margin-top: 15px;
}

.auth-summary-grid div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
  background: #fff;
}

.auth-summary-grid div:first-child { background: #f2faf6; }
.auth-summary-grid div:last-child { background: #fff7f6; }

.auth-summary-grid small {
  color: #8591a2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .45px;
}

.auth-summary-grid strong {
  color: #26364d;
  font: 700 13px Manrope, sans-serif;
}

.auth-summary-grid div:first-child strong { color: #168364; }
.auth-summary-grid div:last-child strong { color: #d84a5e; }

.auth-chart-label {
  justify-content: space-between;
  margin: 15px 1px 3px;
  color: #718096;
  font-size: 8px;
  font-weight: 700;
}

.auth-chart-label span:last-child {
  color: #a0a9b7;
  font-size: 7px;
  font-weight: 500;
}

.auth-chart {
  display: block;
  width: 100%;
  height: 92px;
  overflow: visible;
}

.auth-chart .chart-grid {
  fill: none;
  stroke: #edf0f4;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.auth-chart .chart-area {
  fill: url(#authChartGradient);
}

.auth-chart .chart-line {
  fill: none;
  stroke: #e9294a;
  stroke-linecap: round;
  stroke-width: 3;
}

.auth-chart circle {
  fill: #e9294a;
  stroke: #fff;
  stroke-width: 3;
}

.auth-chart-legend {
  gap: 15px;
  padding-top: 7px;
  border-top: 1px solid #f0f1f4;
  color: #8490a2;
  font-size: 7px;
}

.auth-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #16a77d;
}

.auth-chart-legend span:last-child i { background: #e9294a; }

.auth-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
}

.auth-feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #f5d5db;
  border-radius: 10px;
  background: #fff;
  color: #e31235;
  font-size: 17px;
  font-weight: 800;
}

.auth-feature-row strong,
.auth-feature-row small {
  display: block;
}

.auth-feature-row strong {
  color: #344259;
  font-size: 10px;
}

.auth-feature-row small {
  margin-top: 3px;
  color: #8691a3;
  font-size: 9px;
}

.auth-showcase-footer {
  margin: 0;
  color: #9a8790;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.05px;
}

.auth-showcase-footer span { padding: 0 4px; color: #e31235; }

.auth-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px clamp(30px, 5.2vw, 66px) 22px;
  background: #fff;
}

.auth-mobile-brand { display: none; }

.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b95a5;
  font-size: 9px;
}

.auth-topline > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: .75px;
}

.auth-topline > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1cac80;
  box-shadow: 0 0 0 4px rgba(28, 172, 128, .1);
}

.auth-topline a {
  color: #7c8798;
  text-decoration: none;
  transition: color .18s ease;
}

.auth-topline a:hover { color: #d70f32; }
.auth-topline b { padding-left: 3px; color: #e31235; }

.auth-form-wrap {
  width: min(100%, 390px);
  margin: auto;
  padding: 45px 0 38px;
}

.auth-form-wrap .gate-kicker {
  margin: 0 0 9px;
  color: #dc1738;
  font-size: 9px;
  letter-spacing: 1.35px;
  font-weight: 800;
}

.auth-form-wrap h1 {
  margin: 0;
  color: #19263d;
  font: 800 clamp(27px, 3vw, 34px)/1.2 Manrope, "DM Sans", sans-serif;
  letter-spacing: -1.3px;
}

.auth-intro {
  margin: 9px 0 28px;
  color: #7a8699;
  font-size: 12px;
  line-height: 1.65;
}

.auth-form .auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
}

.auth-field > span:first-child {
  color: #344158;
  font-size: 11px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  height: 49px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input-wrap:focus-within {
  border-color: #e64a62;
  background: #fffdfd;
  box-shadow: 0 0 0 4px rgba(227, 18, 53, .09);
}

.auth-input-wrap > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9aa3b1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26344a;
  font: 500 12px "DM Sans", sans-serif;
}

.auth-input-wrap input::placeholder { color: #a8b0bd; }
.password-toggle { padding: 5px 0 5px 5px; border: 0; background: transparent; color: #7b8799; font: 700 9px "DM Sans", sans-serif; cursor: pointer; }
.password-toggle:hover { color: #d70f32; }

.remember-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -1px 0 21px;
  color: #778398;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

.remember-email input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.remember-box { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid #d8dde5; border-radius: 4px; background: #fff; transition: all .18s ease; }
.remember-box::after { width: 6px; height: 3px; border-bottom: 1.5px solid #fff; border-left: 1.5px solid #fff; content: ""; opacity: 0; transform: rotate(-45deg) translateY(-1px); }
.remember-email input:checked + .remember-box { border-color: #e31235; background: #e31235; }
.remember-email input:checked + .remember-box::after { opacity: 1; }
.remember-email input:focus-visible + .remember-box { outline: 3px solid rgba(227, 18, 53, .18); }

.auth-submit.button {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  border: 1px solid #df1234;
  border-radius: 9px;
  background: linear-gradient(105deg, #fa2344, #dc092d);
  box-shadow: 0 9px 22px rgba(222, 13, 47, .19);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-submit.button:hover { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(222, 13, 47, .25); filter: saturate(1.08); }
.auth-submit.button:active { transform: translateY(0); }
.auth-submit.button span { margin-left: 2px; font-size: 15px; }
.auth-submit.button:focus-visible, .auth-topline a:focus-visible, .auth-brand:focus-visible, .auth-mobile-brand:focus-visible { outline: 3px solid rgba(227, 18, 53, .3); outline-offset: 3px; }

.auth-form-wrap .gate-link { margin-top: 16px; color: #d70f32; font-size: 10px; }
.auth-form-wrap .gate-feedback { min-height: 16px; margin-top: 10px; color: #be2d42; font-size: 10px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
}

.auth-divider span { height: 1px; flex: 1; background: #eceef2; }
.auth-divider i { color: #a0a8b4; font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .9px; }

.auth-help {
  margin: 0;
  color: #818b9a;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-help strong { color: #4e5a6e; font-weight: 700; }

.auth-form-wrap .gate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid #eff0f3;
  color: #919aa8;
  font-size: 9px;
}

.gate-secure svg { width: 15px; height: 15px; fill: none; stroke: #139a72; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.auth-main-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #a0a8b4;
  font-size: 8px;
}

@media (max-width: 900px) {
  .runtime-gate.auth-gate { padding: 18px; }
  .auth-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: min(700px, calc(100dvh - 36px)); }
  .auth-showcase { padding: 30px 28px 21px; }
  .auth-main { padding: 28px 34px 20px; }
  .auth-showcase h2 { font-size: clamp(30px, 4vw, 38px); }
  .auth-description { font-size: 12px; }
  .auth-feature-row { margin-top: 15px; }
}

@media (max-width: 680px) {
  .runtime-gate.auth-gate { display: block; padding: 0; background: #fff; }
  .auth-layout { display: flex; min-height: 100dvh; flex-direction: column; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .auth-showcase { min-height: 194px; padding: 17px 22px 20px; }
  .auth-showcase::after { right: -230px; bottom: -320px; }
  .auth-brand { display: none; }
  .auth-showcase-copy { width: 100%; margin: 0; padding: 0; }
  .auth-chip { margin-bottom: 10px; padding: 6px 9px; font-size: 7px; }
  .auth-showcase h2 { font-size: 27px; letter-spacing: -1.2px; }
  .auth-description { max-width: 450px; margin: 7px 0 0; font-size: 10px; line-height: 1.45; }
  .auth-dashboard, .auth-feature-row, .auth-showcase-footer { display: none; }
  .auth-main { flex: 1; padding: 0 24px 18px; }
  .auth-mobile-brand { display: inline-flex; width: fit-content; margin: 20px 0 15px; }
  .auth-mobile-brand img { display: block; width: 174px; height: auto; }
  .auth-topline { margin-bottom: 13px; font-size: 8px; }
  .auth-form-wrap { width: min(100%, 440px); margin: 0 auto; padding: 16px 0 20px; }
  .auth-form-wrap h1 { font-size: 28px; }
  .auth-intro { margin: 7px 0 23px; }
  .auth-main-footer { justify-content: center; flex-wrap: wrap; text-align: center; }
}

@media (max-width: 380px) {
  .auth-showcase { min-height: 182px; padding-right: 18px; padding-left: 18px; }
  .auth-main { padding-right: 18px; padding-left: 18px; }
  .auth-showcase h2 { font-size: 24px; }
  .auth-main-footer span:last-child { display: none; }
}

@media (max-height: 680px) and (min-width: 681px) {
  .runtime-gate.auth-gate { place-items: start center; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input-wrap, .auth-submit.button, .auth-topline a, .remember-box { transition: none; }
}

/* Same illustrative Dashboard photograph already used on the public homepage. */
.auth-dashboard-photo { display: block; width: 100%; height: auto; object-fit: contain; }

.auth-forgot { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid #efb3c0; border-radius: 9px; background: #fff0f3; color: #bd1130; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.auth-forgot:hover { border-color: #e9294a; background: #ffe3e9; }
.auth-forgot:focus-visible { outline: 3px solid #e3123540; outline-offset: 3px; }
.auth-recovery-dialog { box-sizing: border-box; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid #e8dce1; border-radius: 18px; background: #fff; color: #344158; box-shadow: 0 24px 90px #27091435; font-family: 'DM Sans', sans-serif; text-align: center; }
.auth-recovery-dialog::backdrop { background: #26121e66; backdrop-filter: blur(3px); }
.auth-recovery-dialog h2 { margin: 0 0 14px; color: #19263d; font: 700 24px/1.25 Manrope, sans-serif; letter-spacing: -.6px; }
.auth-recovery-dialog p { margin: 0 0 24px; color: #68758a; font-size: 14px; line-height: 1.65; }
.auth-recovery-dialog button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 9px; background: #e31235; color: #fff; font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.auth-recovery-dialog button:focus-visible { outline: 3px solid #e3123550; outline-offset: 4px; }
