:root {
  color-scheme: light;
  --canvas: #eef3f7;
  --surface: #ffffff;
  --brand-surface: #f4f7fb;
  --brand-navy: #10243e;
  --brand: #0b67d1;
  --brand-hover: #0858b5;
  --teal: #0f806b;
  --text: #172033;
  --muted: #5f6d80;
  --line: #d5dfe9;
  --brand-line: #d5e1ee;
  --danger: #b42318;
  --danger-surface: #fff2f0;
  --success: #067647;
  --success-surface: #ecfdf3;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(380px, .95fr) minmax(500px, 1.05fr);
  min-height: 100vh;
  min-height: 100svh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0;
  padding: 40px 56px 34px;
  border-right: 1px solid var(--brand-line);
  background: var(--brand-surface);
  box-shadow: inset 5px 0 0 #4f7cff;
}

.product-lockup {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
  text-decoration: none;
}

.product-logo {
  display: block;
  width: 48px;
  height: 48px;
  background: transparent;
}

.product-lockup span,
.product-lockup strong,
.product-lockup small {
  display: block;
}

.product-lockup strong {
  font-size: 24px;
  line-height: 1;
}

.product-lockup small {
  margin-top: 5px;
  color: #496679;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.brand-story {
  width: min(100%, 600px);
  margin: auto 0;
}

.eyebrow,
.access-eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-story h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-lead {
  max-width: 570px;
  margin: 18px 0 0;
  color: #42556d;
  font-size: 17px;
  line-height: 1.55;
}

.capability-list {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--brand-line);
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--brand-line);
}

.capability-list span,
.capability-list strong,
.capability-list small {
  display: block;
}

.capability-index {
  padding-top: 2px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.capability-list strong {
  color: var(--brand-navy);
  font-size: 15px;
}

.capability-list small {
  margin-top: 4px;
  color: #526478;
  font-size: 13px;
  line-height: 1.45;
}

.brand-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-line);
  color: #526478;
  font-size: 12px;
}

.brand-footer div,
.brand-footer strong,
.brand-footer span {
  display: block;
}

.brand-footer strong {
  margin-bottom: 4px;
  color: var(--brand-navy);
  font-size: 13px;
}

.brand-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.brand-footer a {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}

.brand-footer a:hover {
  text-decoration: underline;
}

.access-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 48px 56px;
  background: var(--surface);
}

.access-inner {
  width: min(100%, 440px);
}

.access-header {
  margin-bottom: 24px;
}

.access-header h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.access-header > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.field {
  margin-top: 14px;
}

.field:first-child {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid #bdcad8;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input::placeholder {
  color: #8995a6;
}

input:hover,
select:hover {
  border-color: #8ea2b7;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 103, 209, .2);
  outline-offset: 2px;
}

input:focus,
select:focus {
  border-color: var(--brand);
}

button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

button:disabled {
  cursor: wait;
  opacity: .62;
}

.secondary {
  margin-top: 9px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.secondary:hover {
  border-color: #9aabba;
  background: #f7f9fb;
}

.compact {
  width: auto;
  min-width: 72px;
  min-height: 42px;
  margin: 0;
}

.message {
  margin: 0 0 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.message:empty {
  display: none;
}

.message.error:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #f0c2bc;
  background: var(--danger-surface);
  color: var(--danger);
}

.message.success:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #abefc6;
  background: var(--success-surface);
  color: var(--success);
}

.step-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.setup {
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid #b8cce3;
  border-radius: 6px;
  background: #f4f8fd;
}

.mfa-qr {
  display: block;
  width: 178px;
  height: 178px;
  margin: 15px auto;
  border: 7px solid #fff;
  border-radius: 6px;
  image-rendering: pixelated;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-heading > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step-heading strong,
.step-heading small {
  display: block;
}

.step-heading strong {
  color: var(--brand-navy);
  font-size: 14px;
}

.step-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.verification-heading {
  margin-bottom: 15px;
}

details {
  margin-top: 10px;
}

summary {
  width: fit-content;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

details label {
  margin-top: 12px;
}

.secret-row {
  display: flex;
  gap: 8px;
}

.secret-row input {
  min-width: 0;
  color: #2447a8;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.trust-device {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 0;
  cursor: pointer;
}

.trust-device input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
}

.trust-device span,
.trust-device strong,
.trust-device small {
  display: block;
}

.trust-device small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.recovery-codes {
  margin: 15px 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  color: var(--text);
  font: 700 14px/1.75 Consolas, monospace;
  text-align: center;
  white-space: pre;
  user-select: all;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.registration-grid .field {
  min-width: 0;
  margin: 0;
}

.registrationTrap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6d7888;
  font-size: 12px;
  line-height: 1.45;
}

.security-note > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--teal);
}

@media (min-width: 901px) and (max-height: 760px) {
  .brand-panel {
    gap: 26px;
    padding: 28px 44px 24px;
  }

  .brand-story h1 {
    font-size: 34px;
  }

  .brand-lead {
    margin-top: 12px;
    font-size: 15px;
  }

  .capability-list {
    margin-top: 22px;
  }

  .capability-list li {
    padding: 12px 0;
  }

  .access-panel {
    padding-block: 28px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    gap: 18px;
    min-height: auto;
    padding: 22px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .product-logo {
    width: 42px;
    height: 42px;
  }

  .product-lockup strong {
    font-size: 21px;
  }

  .brand-story {
    width: min(100%, 660px);
    margin: 0;
  }

  .eyebrow {
    margin-bottom: 7px;
  }

  .brand-story h1 {
    font-size: 28px;
  }

  .brand-lead {
    margin-top: 9px;
    font-size: 14px;
  }

  .capability-list,
  .brand-footer {
    display: none;
  }

  .access-panel {
    min-height: auto;
    place-items: start center;
    padding: 32px 24px 44px;
  }
}

@media (max-width: 520px) {
  .brand-panel {
    padding: 18px 18px 20px;
    box-shadow: inset 4px 0 0 #4f7cff;
  }

  .brand-story h1 {
    font-size: 24px;
  }

  .brand-lead {
    display: none;
  }

  .access-panel {
    padding: 26px 18px 34px;
  }

  .access-header h2 {
    font-size: 25px;
  }

  .registration-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  input,
  select {
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  }
}
