:root {
  --auth-bg: #0b1321;
  --auth-bg-soft: #101c2e;
  --auth-surface: #131f30;
  --auth-surface-raised: #18263a;
  --auth-border: #2a3a52;
  --auth-border-strong: #3a4d69;
  --auth-text: #f4f7fb;
  --auth-muted: #a9b6c8;
  --auth-subtle: #7f8da2;
  --auth-accent: #3568c8;
  --auth-accent-hover: #4277da;
  --auth-focus: #82aaff;
  --auth-danger: #ffb4a5;
  --auth-danger-bg: rgb(134 45 36 / 22%);
  --auth-radius: 14px;
  --auth-shadow: 0 28px 70px rgb(2 8 18 / 32%);
}

body:has(.auth-shell) {
  min-width: 320px;
  color: var(--auth-text);
  background: var(--auth-bg);
  font-family:
    "Segoe UI Variable",
    "Segoe UI",
    Aptos,
    Arial,
    sans-serif;
}

.auth-shell {
  min-height: 100dvh;
  color: var(--auth-text);
  background: var(--auth-bg);
}

.auth-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      var(--auth-bg) 0%,
      #0e1a2b 48%,
      #14253a 100%
    );
}

.auth-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(108 148 217 / 14%);
  border-radius: 50%;
  pointer-events: none;
}

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

.auth-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--auth-text);
  background: var(--auth-accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 20%),
    0 12px 30px rgb(24 66 143 / 30%);
  font-size: 18px;
  font-weight: 800;
}

.auth-brand-name {
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.auth-story {
  max-width: 760px;
}

.auth-kicker {
  margin: 0 0 14px;
  color: #9dbbf0;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 720px;
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(42px, 4.5vw, 70px);
  font-weight: 730;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.auth-story-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}

.auth-stage-note {
  margin: 0;
  color: var(--auth-subtle);
  font-size: 13px;
}

.auth-level {
  appearance: none;
  overflow: hidden;
  border: 1px solid var(--auth-border-strong);
  border-left: 3px solid var(--auth-accent);
  border-radius: var(--auth-radius);
  color: var(--auth-text);
  font: inherit;
  text-align: left;
  background:
    linear-gradient(
      135deg,
      rgb(31 49 73 / 97%),
      rgb(20 34 53 / 97%)
    );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 24px 48px rgb(8 20 40 / 34%);
}

.auth-level span {
  color: #9cb8e9;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-level strong {
  color: var(--auth-text);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

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

.auth-form-heading {
  margin-bottom: 34px;
}

.auth-form-heading h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.045em;
}

.auth-form-heading p {
  margin: 15px 0 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-form-heading strong {
  color: var(--auth-text);
  font-weight: 650;
}

.auth-alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgb(255 150 130 / 28%);
  border-radius: var(--auth-radius);
  color: var(--auth-danger);
  background: var(--auth-danger-bg);
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert p {
  margin: 0;
}

.auth-alert p + p {
  margin-top: 6px;
}

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

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 680;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  outline: none;
  color: var(--auth-text);
  caret-color: var(--auth-focus);
  background: var(--auth-surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-field input::placeholder {
  color: #91a0b4;
  opacity: 1;
}

.auth-field input:hover {
  border-color: var(--auth-border-strong);
  background: var(--auth-surface-raised);
}

.auth-field input:focus {
  border-color: var(--auth-focus);
  background: var(--auth-surface-raised);
  box-shadow:
    0 0 0 3px rgb(96 143 226 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 5%);
}

.auth-field input[aria-invalid="true"] {
  border-color: #d87564;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text);
  box-shadow: 0 0 0 1000px var(--auth-surface-raised) inset;
  transition: background-color 9999s ease-out;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 90px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #afc5eb;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms ease,
    background-color 160ms ease;
}

.auth-password-toggle:hover {
  color: var(--auth-text);
  background: rgb(255 255 255 / 6%);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 1px;
}

.auth-password-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

.auth-field-error {
  margin: 0;
  color: var(--auth-danger);
  font-size: 13px;
  line-height: 1.45;
}

.auth-submit,
.auth-secondary-button {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  color: #f7f9fd;
  font-size: 14px;
  font-weight: 740;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-submit {
  margin-top: 4px;
  border: 1px solid #4b7bd4;
  background: var(--auth-accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 14px 30px rgb(15 52 120 / 28%);
}

.auth-submit:hover {
  background: var(--auth-accent-hover);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 20%),
    0 18px 34px rgb(15 52 120 / 34%);
  transform: translateY(-1px);
}

.auth-submit:active,
.auth-secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.auth-submit:focus-visible,
.auth-secondary-button:focus-visible,
.auth-back-link:focus-visible {
  outline: 3px solid rgb(130 170 255 / 54%);
  outline-offset: 3px;
}

.auth-security-note {
  margin-top: 30px;
  padding-top: 20px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--auth-border);
}

.auth-security-note strong {
  color: var(--auth-text);
  font-size: 13px;
}

.auth-security-note span {
  color: var(--auth-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.auth-shell[data-auth-shell] {
  position: relative;
  overflow: hidden;
}

.auth-shell[data-auth-shell] .auth-stage {
  min-height: 100dvh;
  padding: clamp(26px, 3.4vw, 56px);
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr) auto;
  gap: clamp(18px, 2.5vh, 34px);
}

.auth-shell[data-auth-shell] .auth-stage::after {
  inset: auto -10% -66% 32%;
  width: 74%;
  aspect-ratio: 1;
}

.auth-shell[data-auth-shell] .auth-story {
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease;
}

.auth-hierarchy {
  width: 100%;
  min-height: 300px;
  align-self: stretch;
  perspective: 1400px;
  animation: auth-scene-enter 820ms cubic-bezier(0.16, 1, 0.3, 1)
    both;
}

.auth-hierarchy-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(50deg + var(--scene-y, 0deg)))
    rotateY(var(--scene-x, 0deg))
    rotateZ(-9deg);
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-shell[data-auth-shell] .auth-level {
  --level-x: 0px;
  --level-y: 0px;
  --level-z: 0px;
  --selection-x: 0px;
  --selection-z: 0px;
  --level-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(860px, 70vw);
  min-height: 92px;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    translate3d(
      calc(var(--level-x) + var(--selection-x)),
      var(--level-y),
      calc(var(--level-z) + var(--selection-z))
    )
    scale(var(--level-scale));
  backface-visibility: hidden;
  animation: auth-level-reveal 760ms cubic-bezier(0.16, 1, 0.3, 1)
    backwards;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 280ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.auth-shell[data-auth-shell] .auth-level:hover,
.auth-shell[data-auth-shell] .auth-level:focus-visible {
  --selection-z: 12px;
  --level-scale: 1.008;
  border-color: #597cb0;
}

.auth-shell[data-auth-shell] .auth-level:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 5px;
}

.auth-shell[data-auth-shell] .auth-level:active {
  --selection-z: 5px;
  --level-scale: 0.994;
}

.auth-shell[data-auth-shell]
  .auth-level[aria-pressed="true"] {
  --selection-x: 12px;
  --selection-z: 34px;
  --level-scale: 1.025;
  z-index: 5;
  border-color: #6d93d6;
  background: #1a2b43;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 28px 64px rgb(8 20 40 / 42%);
}

.auth-shell[data-auth-shell].has-profile-selection
  .auth-level[aria-pressed="false"] {
  opacity: 0.5;
}

.auth-level-director {
  --level-x: -13vw;
  --level-y: -108px;
  --level-z: 96px;
  animation-delay: 70ms;
}

.auth-level-national {
  --level-x: -4.5vw;
  --level-y: -36px;
  --level-z: 64px;
  animation-delay: 150ms;
}

.auth-level-zone {
  --level-x: 4.5vw;
  --level-y: 36px;
  --level-z: 32px;
  animation-delay: 230ms;
}

.auth-level-advisor {
  --level-x: 13vw;
  --level-y: 108px;
  --level-z: 0px;
  animation-delay: 310ms;
}

.auth-shell[data-auth-shell] .auth-access {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 10;
  width: min(52vw, 780px);
  min-height: 100dvh;
  padding: clamp(64px, 8vh, 96px) clamp(32px, 5vw, 78px);
  display: grid;
  place-items: center;
  overflow-y: auto;
  border-left: 1px solid var(--auth-border);
  background:
    linear-gradient(160deg, #122036, var(--auth-bg) 70%);
  box-shadow: -30px 0 80px rgb(8 20 40 / 38%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition:
    transform 660ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease;
}

.auth-shell[data-auth-shell].auth-form-visible .auth-access {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.auth-shell[data-auth-shell] .auth-access-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease;
}

.auth-shell[data-auth-shell].auth-profile-switching
  .auth-access-inner {
  opacity: 0.72;
  transform: translate3d(10px, 0, 0);
}

.auth-access-close {
  position: absolute;
  top: clamp(22px, 3vw, 38px);
  right: clamp(22px, 3vw, 38px);
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--auth-border-strong);
  border-radius: 12px;
  color: var(--auth-text);
  background: rgb(19 31 48 / 88%);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background-color 180ms ease;
}

.auth-access-close:hover {
  border-color: #6489c8;
  background: var(--auth-surface-raised);
  transform: translateY(-1px);
}

.auth-access-close:active {
  transform: translateY(1px) scale(0.98);
}

.auth-access-close:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 3px;
}

.auth-shell[data-auth-shell].auth-form-visible .auth-story {
  opacity: 0.25;
  transform: translate3d(-24px, 0, 0);
}

.auth-shell[data-auth-shell].auth-form-visible .auth-hierarchy {
  position: fixed;
  top: clamp(230px, 29vh, 300px);
  bottom: clamp(34px, 5vh, 62px);
  left: clamp(26px, 3.4vw, 54px);
  z-index: 3;
  width: min(42vw, 600px);
  min-height: 360px;
  animation: none;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-hierarchy-scene {
  min-height: 360px;
  transform: none;
}

.auth-shell[data-auth-shell].auth-form-visible .auth-level {
  width: min(39vw, 560px);
  min-height: 74px;
  padding: 13px 20px;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-level-director {
  --level-x: 0px;
  --level-y: -126px;
  --level-z: 0px;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-level-national {
  --level-x: 0px;
  --level-y: -42px;
  --level-z: 0px;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-level-zone {
  --level-x: 0px;
  --level-y: 42px;
  --level-z: 0px;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-level-advisor {
  --level-x: 0px;
  --level-y: 126px;
  --level-z: 0px;
}

.auth-shell[data-auth-shell].auth-form-visible
  .auth-level[aria-pressed="true"] {
  --selection-x: 14px;
  --selection-z: 0px;
  --level-scale: 1.025;
}

.auth-shell[data-auth-shell].auth-form-visible .auth-stage-note {
  opacity: 0.35;
}

.auth-shell:not([data-auth-shell]) {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  overflow: hidden;
}

.auth-shell:not([data-auth-shell]) .auth-stage {
  min-height: 100dvh;
  padding: clamp(30px, 4vw, 64px);
  display: grid;
  grid-template-rows: auto auto minmax(230px, 1fr) auto;
  gap: clamp(24px, 3vh, 42px);
  border-right: 1px solid var(--auth-border);
}

.auth-shell:not([data-auth-shell]) .auth-stage::after {
  inset: auto -18% -34% 18%;
  width: 82%;
  aspect-ratio: 1;
}

.auth-shell:not([data-auth-shell]) .auth-hierarchy {
  width: min(620px, 92%);
  min-height: 250px;
  align-self: center;
  justify-self: center;
}

.auth-shell:not([data-auth-shell]) .auth-hierarchy-scene {
  min-height: 270px;
}

.auth-shell:not([data-auth-shell]) .auth-level {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 76%);
  min-height: 82px;
  padding: 17px 20px 17px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transform:
    translate(-50%, -50%)
    translate3d(var(--level-x), var(--level-y), var(--level-z));
}

.auth-shell:not([data-auth-shell]) .auth-access {
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, var(--auth-bg-soft), var(--auth-bg) 72%);
}

.auth-code-field input {
  text-align: center;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-variant-numeric: tabular-nums;
}

.auth-verification-actions {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.auth-verification-actions form {
  margin: 0;
}

.auth-secondary-button {
  border: 1px solid var(--auth-border-strong);
  color: var(--auth-text);
  background: transparent;
  font-size: 13px;
}

.auth-secondary-button:hover {
  border-color: #5d7fac;
  background: rgb(255 255 255 / 5%);
  transform: translateY(-1px);
}

.auth-back-link {
  width: fit-content;
  margin: 0 auto;
  color: #afc5eb;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(175 197 235 / 42%);
  text-underline-offset: 4px;
}

.auth-back-link:hover {
  color: var(--auth-text);
  text-decoration-color: currentColor;
}

.auth-alert-success,
.auth-alert-info {
  border-color: rgb(105 150 229 / 34%);
  color: #c9d9f7;
  background: rgb(53 104 200 / 16%);
}

.auth-request-card {
  padding: 22px;
  display: grid;
  gap: 8px;
  border: 1px solid rgb(105 150 229 / 38%);
  border-radius: var(--auth-radius);
  background: rgb(53 104 200 / 14%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.auth-request-card.rejected {
  border-color: rgb(255 150 130 / 30%);
  background: var(--auth-danger-bg);
}

.auth-request-label {
  color: #9dbbf0;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-request-card strong {
  color: var(--auth-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.auth-request-card p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-request-details {
  margin: 18px 0 0;
  display: grid;
  border-top: 1px solid var(--auth-border);
}

.auth-request-details div {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--auth-border);
}

.auth-request-details dt,
.auth-request-details dd {
  margin: 0;
  font-size: 13px;
}

.auth-request-details dt {
  color: var(--auth-subtle);
}

.auth-request-details dd {
  color: var(--auth-text);
  font-weight: 650;
  text-align: right;
}

.auth-request-action {
  margin-top: 20px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

@keyframes auth-scene-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes auth-level-reveal {
  from {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate3d(
        var(--level-x),
        calc(var(--level-y) + 26px),
        calc(var(--level-z) - 54px)
      )
      scale(0.985);
  }

  to {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate3d(
        calc(var(--level-x) + var(--selection-x, 0px)),
        var(--level-y),
        calc(var(--level-z) + var(--selection-z, 0px))
      )
      scale(var(--level-scale, 1));
  }
}

@media (max-width: 1080px) {
  .auth-shell[data-auth-shell] .auth-level {
    width: min(780px, 76vw);
  }

  .auth-shell[data-auth-shell] .auth-access {
    width: min(58vw, 680px);
  }

  .auth-shell[data-auth-shell].auth-form-visible .auth-hierarchy {
    width: 38vw;
  }

  .auth-shell[data-auth-shell].auth-form-visible .auth-level {
    width: 35vw;
  }

  .auth-shell:not([data-auth-shell]) {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  }
}

@media (max-width: 820px) {
  .auth-shell[data-auth-shell] {
    overflow-y: auto;
  }

  .auth-shell[data-auth-shell] .auth-stage {
    min-height: 100dvh;
    padding: 22px;
    grid-template-rows: auto auto minmax(490px, 1fr) auto;
    gap: 24px;
  }

  .auth-shell[data-auth-shell] .auth-story-copy {
    display: none;
  }

  .auth-shell[data-auth-shell] .auth-story h1 {
    max-width: 560px;
    font-size: clamp(34px, 8.5vw, 52px);
  }

  .auth-shell[data-auth-shell] .auth-hierarchy-scene {
    min-height: 480px;
    transform: none;
  }

  .auth-shell[data-auth-shell] .auth-level {
    width: min(680px, calc(100vw - 44px));
    min-height: 92px;
  }

  .auth-shell[data-auth-shell] .auth-level-director {
    --level-x: 0px;
    --level-y: -156px;
    --level-z: 0px;
  }

  .auth-shell[data-auth-shell] .auth-level-national {
    --level-x: 0px;
    --level-y: -52px;
    --level-z: 0px;
  }

  .auth-shell[data-auth-shell] .auth-level-zone {
    --level-x: 0px;
    --level-y: 52px;
    --level-z: 0px;
  }

  .auth-shell[data-auth-shell] .auth-level-advisor {
    --level-x: 0px;
    --level-y: 156px;
    --level-z: 0px;
  }

  .auth-shell[data-auth-shell] .auth-access {
    width: 100%;
    padding: 78px 24px 42px;
    border-left: 0;
  }

  .auth-shell[data-auth-shell].auth-form-visible .auth-stage {
    opacity: 0.24;
    transform: scale(0.98);
  }

  .auth-shell[data-auth-shell].auth-form-visible .auth-hierarchy {
    position: static;
    width: 100%;
    min-height: 480px;
  }

  .auth-shell[data-auth-shell].auth-form-visible .auth-level {
    width: min(680px, calc(100vw - 44px));
    min-height: 92px;
  }

  .auth-shell:not([data-auth-shell]) {
    display: block;
    overflow: visible;
  }

  .auth-shell:not([data-auth-shell]) .auth-stage {
    min-height: 225px;
    padding: 24px;
    grid-template-rows: auto 1fr;
    gap: 30px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-border);
  }

  .auth-shell:not([data-auth-shell]) .auth-stage::after,
  .auth-shell:not([data-auth-shell]) .auth-hierarchy,
  .auth-shell:not([data-auth-shell]) .auth-stage-note,
  .auth-shell:not([data-auth-shell]) .auth-story-copy,
  .auth-shell:not([data-auth-shell]) .auth-kicker {
    display: none;
  }

  .auth-shell:not([data-auth-shell]) .auth-story {
    align-self: end;
  }

  .auth-shell:not([data-auth-shell]) .auth-story h1 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .auth-shell:not([data-auth-shell]) .auth-access {
    min-height: calc(100dvh - 225px);
    padding: 40px 24px 54px;
    place-items: start center;
  }
}

@media (max-width: 480px) {
  .auth-shell[data-auth-shell] .auth-stage {
    grid-template-rows: auto auto minmax(440px, 1fr) auto;
  }

  .auth-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .auth-brand-name {
    font-size: 17px;
  }

  .auth-shell[data-auth-shell] .auth-kicker {
    margin-bottom: 10px;
  }

  .auth-shell[data-auth-shell] .auth-story h1 {
    font-size: 34px;
  }

  .auth-shell[data-auth-shell] .auth-hierarchy-scene {
    min-height: 430px;
  }

  .auth-shell[data-auth-shell] .auth-level {
    width: calc(100vw - 40px);
    min-height: 82px;
    padding: 13px 18px;
  }

  .auth-shell[data-auth-shell] .auth-level-director {
    --level-y: -138px;
  }

  .auth-shell[data-auth-shell] .auth-level-national {
    --level-y: -46px;
  }

  .auth-shell[data-auth-shell] .auth-level-zone {
    --level-y: 46px;
  }

  .auth-shell[data-auth-shell] .auth-level-advisor {
    --level-y: 138px;
  }

  .auth-shell[data-auth-shell] .auth-access {
    padding: 76px 20px 36px;
  }

  .auth-form-heading {
    margin-bottom: 26px;
  }

  .auth-form-heading h2 {
    font-size: 34px;
  }

  .auth-code-field input {
    font-size: 22px;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hierarchy,
  .auth-level,
  .auth-stage,
  .auth-story,
  .auth-hierarchy-scene,
  .auth-access,
  .auth-access-inner,
  .auth-access-close,
  .auth-submit,
  .auth-secondary-button,
  .auth-password-toggle {
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .auth-level {
    background: var(--auth-surface-raised);
  }
}
