:root {
  --auth-navy: #07133f;
  --auth-blue: #1b2cc1;
  --auth-mid: #7692ff;
  --auth-bg: #f4f7fb;
  --auth-surface: #ffffff;
  --auth-text: #182033;
  --auth-muted: #66718a;
  --auth-border: #dfe5f0;
  --auth-danger: #b42318;
  --auth-danger-bg: #fff4f2;
}

.login-page.auth-ui-page {
  margin: 0;
  min-height: 100vh;
  background: var(--auth-bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 7vw, 88px) clamp(34px, 7vw, 92px);
  background: var(--auth-navy);
  color: #fff;
  overflow: hidden;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(171, 210, 250, 0.11);
  pointer-events: none;
}

.auth-brand-panel::before {
  width: 520px;
  height: 520px;
  right: -260px;
  top: 14%;
}

.auth-brand-panel::after {
  width: 320px;
  height: 320px;
  left: -170px;
  bottom: -120px;
}

.auth-brand-lockup,
.auth-brand-copy,
.auth-trust-row {
  position: relative;
  z-index: 1;
}

.auth-brand-mark {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
}

.auth-brand-mark span { color: var(--auth-mid); }
.auth-brand-sub { margin-top: 8px; color: #aeb8d6; font-size: 12px; letter-spacing: .02em; }

.auth-brand-copy { max-width: 520px; padding: 90px 0 30px; }
.auth-brand-copy .auth-kicker { color: #8e9cc4; }
.auth-brand-copy h2 { margin: 10px 0 14px; max-width: 450px; font-size: clamp(34px, 4vw, 52px); line-height: 1.03; letter-spacing: -.9px; }
.auth-brand-copy p { max-width: 470px; margin: 0; color: #bac4df; line-height: 1.65; font-size: 15px; }

.auth-kicker {
  color: #8b97b3;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
}

.auth-trust-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cbd4ea;
  font-size: 12px;
}

.auth-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd0ae;
  box-shadow: 0 0 0 5px rgba(143, 208, 174, .1);
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 42px 28px;
  background: linear-gradient(180deg, #f8faff 0%, #f4f7fb 100%);
}

.auth-form-wrap {
  width: min(460px, 100%);
  padding: 42px;
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: var(--auth-surface);
  box-shadow: 0 24px 70px rgba(9, 21, 64, .10);
}

.auth-mobile-brand { display: none; margin-bottom: 30px; }
.auth-form-heading h1 { margin: 7px 0 8px; color: var(--auth-text); font-size: 34px; letter-spacing: -.55px; }
.auth-form-heading p { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.5; }

.auth-alert {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert-error { color: var(--auth-danger); background: var(--auth-danger-bg); border: 1px solid #f2d0cb; }

.auth-form { display: grid; gap: 16px; margin-top: 28px; }
.auth-field { display: grid; gap: 7px; color: #37425a; font-size: 12px; font-weight: 750; }
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  outline: none;
  background: #fbfcfe;
  color: var(--auth-text);
  font: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-field input:focus {
  border-color: #8295ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 44, 193, .08);
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--auth-blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(27, 44, 193, .18);
}
.auth-submit:hover { filter: brightness(.98); }
.auth-submit span:last-child { font-size: 19px; line-height: 1; }

.auth-security-note {
  margin: 18px 0 0;
  color: #8a94a8;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-mobile-brand { display: block; }
  .auth-form-panel { min-height: 100vh; padding: 26px 16px; }
  .auth-form-wrap { padding: 30px 24px; border-radius: 18px; }
}

@media (max-width: 520px) {
  .auth-form-panel { padding: 14px; }
  .auth-form-wrap { padding: 24px 18px; }
}
