* {
  box-sizing: border-box;
}
body.auth-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  color: #e6ecff;
  background: #10192b url('./assets/auth-flow.svg') center/cover fixed;
  font:
    16px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.auth-shell {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid #405172;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 100px #0006;
  background: #162136;
}
.auth-story {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111d32 url('./assets/auth-flow.svg') 62% 50% / auto 115%;
  min-height: 660px;
}
.auth-brand {
  width: 142px;
}
.auth-story h1 {
  font-size: 48px;
  line-height: 1.17;
  letter-spacing: -1.5px;
  margin: 28px 0 20px;
}
.auth-story p {
  max-width: 300px;
}
.auth-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #b3c1ff;
}
.auth-story small {
  color: #bcc9e3;
}
.auth-panel {
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.auth-panel h2 {
  font-size: 28px;
  margin: 16px 0 4px;
}
.auth-panel p {
  color: #a7b6d0;
  margin: 0 0 25px;
}
.auth-panel label {
  display: block;
  margin: 20px 0 7px;
  color: #c1cbe0;
  font-size: 14px;
}
.auth-panel input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 12px 14px;
  border: 1px solid #41516f;
  border-radius: 10px;
  background: #101b2e;
  color: #e6ecff;
  font: inherit;
}
.auth-panel input:focus {
  outline: 2px solid #929df3;
  outline-offset: 2px;
}
.auth-password {
  position: relative;
}
.auth-password input {
  padding-right: 94px;
}
.auth-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #bfcbf7;
  padding: 8px;
  cursor: pointer;
  height: 36px;
}
.auth-primary,
.auth-secondary {
  width: 100%;
  display: block;
  padding: 13px 18px;
  border: 1px solid #465673;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font: 600 16px/1.5 system-ui;
  cursor: pointer;
}
.auth-primary {
  background: #929ef4;
  color: #13213c;
  margin-top: 26px;
}
.auth-secondary {
  color: #dce4f7;
  background: #1b2940;
  margin-top: 12px;
}
.auth-links {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.auth-links .auth-secondary {
  margin: 0;
}
.auth-error {
  color: #ffb1b1 !important;
  font-size: 14px;
  margin: 12px 0 !important;
}
.auth-shield {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #3e5081;
  border-radius: 12px;
  background: #778aef18;
  color: #a4b1ff;
  font-size: 26px;
}
.auth-success {
  padding: 20px;
  border: 1px solid #499689;
  border-radius: 12px;
  background: #5fc3ad14;
}
.auth-panel a:focus-visible {
  outline: 2px solid #aab7ff;
}
.auth-note {
  font-size: 13px;
  margin-top: 20px !important;
}
@media (max-width: 720px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: 220px;
    padding: 25px;
  }
  .auth-story h1 {
    font-size: 32px;
    margin: 18px 0;
  }
  .auth-story p,
  .auth-story > small,
  .auth-eyebrow {
    display: none;
  }
  .auth-panel {
    padding: 28px 24px;
  }
  .auth-page {
    padding: 16px !important;
  }
}

.auth-onboarding {
  padding: 16px 18px;
  border: 1px solid #5464a3;
  border-left: 3px solid #a0adff;
  border-radius: 12px;
  background: #8295ef14;
}
.auth-onboarding h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  line-height: 1.4;
  color: #e6ecff;
  margin: 0 0 8px;
}
.auth-onboarding svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #a8b7ff;
  stroke-width: 1.7;
  stroke-linejoin: round;
  margin-top: 2px;
}
.auth-panel .auth-onboarding p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #bdc9e2;
}
.auth-onboarding ol {
  padding-left: 22px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #d9e2f5;
}
.auth-onboarding li + li {
  margin-top: 5px;
}
.auth-access-help {
  margin-top: 18px;
}
.auth-panel .auth-access-help p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.auth-access-help strong {
  font-weight: 500;
  color: #d7e0f3;
}
/* Keep the standard dark field appearance when the browser fills credentials. */
.auth-panel input {
  color-scheme: dark;
  caret-color: #e6ecff;
}
.auth-panel input:autofill {
  background: #101b2e;
  color: #e6ecff;
  box-shadow: 0 0 0 1000px #101b2e inset;
}
.auth-panel input:-webkit-autofill,
.auth-panel input:-webkit-autofill:hover,
.auth-panel input:-webkit-autofill:focus,
.auth-panel input:-webkit-autofill:active {
  -webkit-text-fill-color: #e6ecff;
  caret-color: #e6ecff;
  -webkit-box-shadow: 0 0 0 1000px #101b2e inset;
  box-shadow: 0 0 0 1000px #101b2e inset;
}
