:root {
  --ink-950: #07111f;
  --ink-900: #0d1a2b;
  --ink-800: #16263b;
  --ink-700: #2b405b;
  --ink-600: #506783;
  --ink-500: #6f8198;
  --ink-300: #b7c2cf;
  --ink-200: #d5dce5;
  --ink-100: #e9edf2;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --blue-700: #075bc7;
  --blue-600: #126be0;
  --blue-100: #dbeafe;
  --green-700: #08734d;
  --green-100: #dff8ed;
  --red-700: #b42318;
  --red-100: #fee4e2;
  --focus: rgba(18, 107, 224, 0.16);
  --shadow: 0 20px 60px rgba(8, 25, 48, 0.12);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { border: 0; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 34px 42px 36px;
  background: var(--ink-900);
  color: #ffffff;
}

.brand-panel::after {
  position: absolute;
  right: -180px;
  bottom: -140px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(141, 182, 233, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(141, 182, 233, 0.025), 0 0 0 180px rgba(141, 182, 233, 0.018);
  content: "";
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #163154;
  color: #ffffff;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-product {
  margin-top: 2px;
  color: #91b7e7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  flex: 1;
  max-width: 560px;
  padding: 72px 0 48px;
}

.eyebrow {
  color: #70a9ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-title {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.brand-copy {
  max-width: 480px;
  margin: 20px 0 0;
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.7;
}

.control-snapshot {
  display: grid;
  gap: 1px;
  max-width: 520px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid rgba(185, 200, 220, 0.16);
  border-radius: 10px;
  background: rgba(185, 200, 220, 0.13);
  box-shadow: var(--shadow);
}

.snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 12px 16px;
  background: rgba(9, 25, 44, 0.9);
}

.snapshot-label {
  color: #8ea3bd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.snapshot-title {
  margin-top: 3px;
  color: #f6f9fc;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 184, 126, 0.14);
  color: #75e0b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56d8a5;
  box-shadow: 0 0 0 3px rgba(86, 216, 165, 0.1);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.snapshot-cell {
  min-height: 86px;
  padding: 14px 16px;
  background: rgba(13, 31, 53, 0.92);
}

.snapshot-value {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.snapshot-copy {
  margin-top: 6px;
  color: #8297b1;
  font-size: 9px;
  line-height: 1.45;
}

.brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7f93ad;
  font-size: 10px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-500);
  font-size: 11px;
}

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--ink-200);
  border-radius: 5px;
  background: #fafbfc;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 650;
}

.region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
}

.support-link {
  padding: 4px 0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.support-link:hover { text-decoration: underline; }

.auth-stage {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 48px 54px 32px;
}

.auth-card {
  width: min(100%, 430px);
}

.auth-heading {
  margin: 0;
  color: var(--ink-950);
  font-size: 30px;
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 10px 0 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.55;
}

.tenant-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 11px 12px;
  border: 1px solid #b8e4d1;
  border-radius: 7px;
  background: #effaf5;
}

.tenant-mark {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 900;
}

.tenant-title {
  color: #075b3d;
  font-size: 11px;
  font-weight: 750;
}

.tenant-copy {
  margin-top: 2px;
  color: #3f6b5b;
  font-size: 10px;
  line-height: 1.45;
}

.sso-button, .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.sso-button {
  border: 1px solid var(--ink-300);
  background: #ffffff;
  color: var(--ink-900);
}

.sso-button:hover:not(:disabled) { border-color: #8d9caf; background: #fafbfc; }

.sso-button:active:not(:disabled), .primary-button:active:not(:disabled) { transform: translateY(1px); }

.sso-button:disabled {
  cursor: not-allowed;
  border-color: var(--ink-200);
  background: #fafbfc;
  color: var(--ink-500);
  opacity: 1;
}

.sso-button:disabled .google-mark { filter: grayscale(1); opacity: 0.55; }

.google-mark { display: inline-flex; }

.p1-pill {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.first-time-note { margin: 12px 2px 4px; color: var(--ink-600); font-size: 12.5px; }

.pending-head { display: flex; align-items: center; gap: 12px; }
.pending-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink-900); color: #fff; font-weight: 700; font-size: 16px; }
.pending-email { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.pending-verified { color: var(--green-700); font-size: 12px; margin-top: 2px; }
.pending-pill { margin-left: auto; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: #fdf3d8; color: #8a6d1a; border: 1px solid #ecd9a0; white-space: nowrap; }
.pending-steps { margin: 16px 0 4px; padding: 0 0 0 2px; list-style: none; display: grid; gap: 9px; }
.pending-steps li { position: relative; padding-left: 26px; color: var(--ink-600); font-size: 13px; }
.pending-steps li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--ink-300); }
.pending-steps li.done { color: var(--green-700); }
.pending-steps li.done::before { border-color: var(--green-700); background: var(--green-700); }
.pending-steps li.active { color: var(--ink-900); font-weight: 600; }
.pending-steps li.active::before { border-color: var(--blue-600); }
.pending-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pending-actions .sso-button { width: auto; padding: 11px 20px; }

.divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ink-500);
  font-size: 10px;
}

.divider::before, .divider::after {
  height: 1px;
  background: var(--ink-200);
  content: "";
}

.form-grid { display: grid; gap: 15px; margin-top: 24px; }

.field { display: grid; gap: 6px; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
}

.field-hint {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 600;
}

.input-wrap { position: relative; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink-300);
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink-950);
  font-size: 13px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.input::placeholder { color: #96a3b3; }

.input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--focus);
}

.input.invalid { border-color: var(--red-700); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1); }

.password-input { padding-right: 58px; }

.show-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 5px;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.error-message {
  display: none;
  color: var(--red-700);
  font-size: 10px;
}

.error-message.visible { display: block; }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-600);
  font-size: 10px;
}

.primary-button {
  margin-top: 2px;
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(18, 107, 224, 0.18);
}

.primary-button:hover:not(:disabled) { background: var(--blue-700); }

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.loading .button-spinner { display: block; }

.form-message {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #b8e4d1;
  border-radius: 6px;
  background: #effaf5;
  color: #075b3d;
  font-size: 10px;
  line-height: 1.45;
}

.form-message.visible { display: flex; }

.form-message.error {
  border-color: #f1b6b0;
  background: #fdf0ee;
  color: var(--red-700);
}

.auth-policy {
  margin: 22px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 34px;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-500);
  font-size: 9px;
}

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

@media (max-width: 980px) {
  .login-shell { grid-template-columns: minmax(340px, 0.78fr) minmax(480px, 1.22fr); }
  .brand-panel { padding: 28px 30px 30px; }
  .snapshot-grid { grid-template-columns: minmax(0, 1fr); }
  .snapshot-cell { min-height: 60px; }
}

@media (max-width: 780px) {
  .login-shell { display: block; }
  .brand-panel { min-height: auto; padding: 18px 20px; }
  .brand-content, .brand-footer { display: none; }
  .auth-panel { min-height: calc(100vh - 74px); }
  .auth-topbar { min-height: 54px; padding: 0 18px; }
  .auth-stage { padding: 34px 22px 26px; place-items: start center; }
  .auth-footer { min-height: 54px; padding: 0 18px; }
}

@media (max-width: 480px) {
  .auth-topbar > span { display: none; }
  .auth-stage { padding: 28px 18px 24px; }
  .auth-heading { font-size: 27px; }
  .tenant-note { margin-top: 20px; }
  .auth-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* ── former style= attributes (blocked as inline styles by style-src 'self') ── */
.brand-mark img { object-fit: contain; }
.sso-form { display: contents; }
.pending-heading { margin-top: 18px; }
