.sd-auth, .sd-auth * { box-sizing: border-box; }
.sd-auth {
  margin: 0;
  color: var(--sd-text);
  background: var(--sd-canvas);
  font: 400 1rem/1.55 var(--sd-font);
}
.sd-auth a { text-underline-offset: .18em; }
.sd-auth :focus-visible { outline: 2px solid var(--sd-lime); outline-offset: 3px; }
.sd-auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.sd-auth-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3.4vw, 3rem);
}
.sd-auth-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.sd-auth-header .culture-switcher {
  display: inline-flex;
  margin: 0;
  padding: .2rem;
  gap: .15rem;
  border: 1px solid var(--sd-line);
  border-radius: .55rem;
}
.sd-auth-header .culture-btn {
  color: var(--sd-muted);
  background: transparent;
  border: 0;
  border-radius: .35rem;
  font: 700 .75rem var(--sd-font);
  cursor: pointer;
  padding: .45rem .5rem;
}
.sd-auth-header .culture-btn.active { background: var(--sd-raised); color: var(--sd-text); }
.sd-auth-main {
  width: min(100%, 26rem);
  align-self: center;
  justify-self: center;
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}
.sd-auth-main-wide { width: min(100%, 34rem); }
.sd-auth-intro { margin-bottom: 1.65rem; }
.sd-auth-intro h1 {
  margin: .4rem 0 .65rem;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.sd-auth-intro p { margin: 0; color: var(--sd-muted); }
.sd-auth-form, .sd-auth-fields { display: grid; gap: .95rem; }
.sd-auth-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-auth-field-full { grid-column: 1 / -1; }
.sd-auth-field { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.sd-auth-field label, .sd-auth-modules legend { font-size: .875rem; font-weight: 750; }
.sd-auth-field input {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid var(--sd-line-strong);
  border-radius: .6rem;
  color: var(--sd-text);
  background: var(--sd-panel);
  font: inherit;
}
.sd-auth-field input::placeholder { color: var(--sd-muted); }
.sd-auth-field-hint { color: var(--sd-muted); font-size: .76rem; }
.sd-auth-field .input-validation-error { border-color: var(--sd-danger); }
.sd-auth-password { position: relative; }
.sd-auth-password input { padding-inline-end: 8rem; }
.sd-password-toggle {
  position: absolute;
  inset-block: .3rem;
  inset-inline-end: .35rem;
  padding: 0 .45rem;
  max-width: 7.5rem;
  border: 0;
  border-radius: .4rem;
  background: var(--sd-raised);
  color: var(--sd-link-hover);
  font: 700 .73rem var(--sd-font);
  cursor: pointer;
}
.sd-password-toggle[aria-pressed="true"] { background: var(--sd-info-panel); }
.sd-auth-error, .sd-auth-notice { font-size: .85rem; }
.sd-auth-error { color: var(--sd-danger); }
.sd-auth-error ul { margin: 0; padding-inline-start: 1.25rem; }
.sd-auth-error.validation-summary-valid, .sd-auth-error.field-validation-valid { display: none; }
.sd-auth-notice {
  background: var(--sd-info-panel);
  color: var(--sd-info);
  border-radius: .6rem;
  padding: .65rem .85rem;
}
.sd-auth-submit { width: 100%; }
.sd-auth-next { margin: 1.4rem 0 0; color: var(--sd-muted); font-size: .875rem; }
.sd-auth-next a { color: var(--sd-link-hover); font-weight: 700; }
.sd-auth-note { margin: 0 0 .65rem; color: var(--sd-muted); font-size: .875rem; overflow-wrap: anywhere; }
.sd-auth-modules { min-width: 0; border: 0; padding: 0; margin: .3rem 0 0; }
.sd-auth-modules p, .sd-auth-help { margin: .25rem 0 .6rem; color: var(--sd-muted); font-size: .82rem; }
.sd-auth-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border: 1px solid var(--sd-line);
  border-radius: .55rem;
  margin-bottom: .4rem;
  cursor: pointer;
}
.sd-auth-option:has(input:checked) { background: var(--sd-panel); border-color: var(--sd-line-strong); }
.sd-auth-option input { width: 1.1rem; height: 1.1rem; flex: none; margin: 0; accent-color: var(--sd-lime); }
.sd-auth-option strong, .sd-auth-option small { display: block; }
.sd-auth-option strong { font-size: .86rem; }
.sd-auth-option small { color: var(--sd-muted); font-size: .79rem; }
.sd-auth-help summary { color: var(--sd-link-hover); width: fit-content; font-weight: 700; cursor: pointer; }
.sd-auth-help p { margin-bottom: 0; }
.sd-auth-footer { display: flex; gap: 1.1rem; color: var(--sd-muted); font-size: .8rem; }
.sd-auth-footer a { color: inherit; }
.sd-auth-art {
  position: sticky;
  top: .75rem;
  align-self: start;
  min-height: 26rem;
  height: calc(100svh - 1.5rem);
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  margin: .75rem .75rem .75rem 0;
  border-radius: 1rem;
  background: #020f1f;
  color: var(--sd-text);
}
.sd-auth-art img { position: absolute; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.sd-auth-art-copy { padding: clamp(1.6rem, 4.2vw, 4rem); }
.sd-auth-art-copy .sd-eyebrow { color: var(--sd-lime); }
.sd-auth-art-copy p {
  max-width: 13ch;
  margin: .65rem 0 0;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}
@container (max-aspect-ratio: 2/3) {
  .sd-auth-art img {
    bottom: 0;
    height: auto;
    mask-image: linear-gradient(180deg, transparent, #000 3rem);
  }
}
@media (max-width: 850px) {
  .sd-auth-shell { grid-template-columns: 1fr; }
  .sd-auth-art { display: none; }
}
@media (max-width: 480px) {
  .sd-auth-fields { grid-template-columns: 1fr; }
}
