body.auth-body {
  margin: 0;
  background: var(--color-background);
  color: #17243b;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

.auth-intro {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 80px);
  background: var(--workspace-heading-background);
  color: var(--workspace-heading-text);
  border-right: 1px solid var(--workspace-heading-border);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: var(--workspace-heading-text);
  font-size: 21px;
  font-weight: 700;
}

.auth-brand:hover {
  color: #dbe8f5;
}

.auth-brand strong {
  font-weight: 400;
}

.auth-brand__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  letter-spacing: -.04em;
}

.auth-intro__content {
  width: 100%;
  max-width: 490px;
  margin: auto 0;
  padding: 60px 0;
}

.auth-eyebrow {
  margin: 0 0 14px;
  color: #3f5f89;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-intro .auth-eyebrow {
  color: var(--workspace-heading-eyebrow);
}

.auth-intro h1 {
  margin: 0 0 22px;
  color: var(--workspace-heading-text);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.045em;
}

.auth-intro__description {
  max-width: 430px;
  color: var(--workspace-heading-muted);
  font-size: 16px;
}

.auth-feature-list {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  gap: 14px;
  color: var(--workspace-heading-muted);
  font-size: 13px;
}

.auth-feature-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--workspace-heading-text);
  font-size: 14px;
}

.auth-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid #6a8da9;
  color: var(--workspace-heading-muted);
  font-size: 16px;
}

.auth-intro__footer {
  color: var(--workspace-heading-muted);
  margin: 0;
  font-size: 12px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: #fff;
}

.auth-panel__content {
  width: 100%;
  max-width: 390px;
}

.auth-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0 0 12px;
}

.auth-subtitle {
  margin-bottom: 32px;
  color: #52647b;
}

.auth-form {
  display: grid;
  gap: 22px;
}

.auth-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.auth-form .form-control {
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
  color: #17243b;
}

.auth-password {
  position: relative;
}

.auth-password .form-control {
  padding-right: 48px;
}

.auth-password__toggle {
  position: absolute;
  inset: 2px 2px 2px auto;
  width: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #52647b;
}

.auth-password__toggle:hover {
  background: #f1f5f9;
}

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-footer .form-check {
  margin: 0;
}

.auth-footer .form-check-label,
.auth-footer .btn-link {
  font-size: 13px;
}

.auth-form .btn-primary {
  min-height: 48px;
  border-radius: 9px;
  background: #2563eb !important;
  border-color: #2563eb !important;
  font-weight: 600;
}

.auth-form .btn-primary:hover {
  background: #1d4ed8 !important;
}

.auth-form .btn-primary:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-error {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

.auth-notice {
  padding: 12px 14px;
  margin-bottom: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
}

.auth-flow [hidden] {
  display: none !important;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: #52647b;
  font-size: 13px;
}

.auth-flow .auth-error {
  margin-bottom: 22px;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.auth-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #52647b;
  font-size: 12px;
  line-height: 1.4;
}

.auth-steps__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}

.auth-steps li[aria-current] {
  color: #1d4ed8;
  font-weight: 600;
}

.auth-steps li[aria-current] .auth-steps__number {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.auth-steps li.is-complete .auth-steps__number {
  border-color: #a7d8bf;
  background: #ecfdf5;
  color: #166534;
}

.auth-field-help {
  margin: 8px 0 0;
  color: #52647b;
  font-size: 13px;
  line-height: 1.5;
}

.auth-expiry {
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
}

.auth-form .auth-code-input {
  font-size: 24px;
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
}

.auth-flow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.auth-flow-actions .btn-link {
  min-height: 40px;
  font-size: 13px;
}

.auth-reset-link {
  justify-self: center;
  font-size: 13px;
}

.auth-success__icon {
  display: block;
  margin-bottom: 18px;
  color: #15803d;
  font-size: 42px;
  line-height: 1;
}

.auth-success h3 {
  margin: 0 0 12px;
  color: #17243b;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.auth-success p {
  margin-bottom: 24px;
  color: #52647b;
}

.auth-success .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 9px;
  background: #2563eb !important;
  border-color: #2563eb !important;
  font-weight: 600;
}

.auth-help {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  color: #52647b;
  font-size: 13px;
}

.auth-help p {
  margin: 0 0 8px;
}

.auth-body :focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

body.auth-body .auth-intro :focus-visible {
  outline-color: #b5ddff !important;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  }
  .auth-intro,
  .auth-panel {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    display: block;
  }
  .auth-intro {
    padding: 24px;
    border: 0;
    border-bottom: 1px solid var(--workspace-heading-border);
  }
  .auth-intro__content,
  .auth-intro__footer {
    display: none;
  }
  .auth-panel {
    padding: 36px 24px;
    min-height: calc(100vh - 91px);
    align-items: start;
  }
}

@media print {
  .auth-intro {
    --workspace-heading-text: #1c2b42;
    --workspace-heading-muted: #38485f;
    --workspace-heading-eyebrow: #38485f;
    background: #fff;
    border-color: #c5cfdb;
  }
}
