.auth-shell.auth-shell--illustrated {
  width: min(100%, 1180px);
  min-height: calc(100svh - 84px);
  grid-template-columns: minmax(0, .9fr) minmax(420px, .85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  padding: clamp(2rem, 5vh, 4.5rem) 2rem;
}

.auth-shell--illustrated .auth-intro {
  min-width: 0;
  justify-content: center;
}

.auth-shell--illustrated .auth-eyebrow {
  display: none;
}

.auth-shell--illustrated .auth-title {
  max-width: 10ch;
  margin-top: 0;
  text-wrap: balance;
}

.auth-shell--illustrated .auth-subtitle {
  max-width: 34rem;
  text-wrap: pretty;
}

.auth-shell--illustrated .auth-illustration {
  width: clamp(12rem, 20vw, 16rem);
  height: auto;
  margin: 1.75rem 0 0 clamp(.5rem, 4vw, 3rem);
  filter: drop-shadow(0 18px 24px rgb(15 23 42 / .12));
}

.auth-shell--illustrated .auth-card-wrap {
  min-width: 0;
}

.auth-shell--illustrated .auth-card {
  max-width: 34rem;
  border-color: #dbe3ee;
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 24px 60px -34px rgb(15 23 42 / .32);
}

.auth-password-heading {
  max-width: 31rem;
}

.auth-password-form input[type="email"] {
  min-height: 3.25rem;
  border-radius: .75rem;
  background: #fff;
  font-size: 1rem;
}

.auth-password-submit,
.auth-password-back {
  min-height: 3.25rem;
  border-radius: .75rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-password-submit:hover {
  background: #4338ca;
  box-shadow: 0 14px 24px -16px rgb(67 56 202 / .72);
}

.auth-password-back:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.auth-password-submit:active,
.auth-password-back:active {
  transform: translateY(1px);
}

.auth-password-submit:focus-visible,
.auth-password-back:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .auth-shell.auth-shell--illustrated {
    display: grid;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 5.25rem 1rem max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .auth-shell--illustrated .auth-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.25rem;
    align-items: center;
    gap: .35rem 1rem;
    padding: 0;
  }

  .auth-shell--illustrated .auth-title {
    grid-column: 1;
    grid-row: 1;
    max-width: 12ch;
    margin: 0;
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .auth-shell--illustrated .auth-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: .35rem 0 0;
    font-size: .9375rem;
    line-height: 1.45;
  }

  .auth-shell--illustrated .auth-illustration {
    grid-column: 2;
    grid-row: 1;
    width: 6.25rem;
    margin: 0;
    justify-self: end;
    filter: drop-shadow(0 12px 16px rgb(15 23 42 / .1));
  }

  .auth-shell--illustrated .auth-card-wrap {
    display: block;
    margin-top: 0;
  }

  .auth-shell--illustrated .auth-card {
    max-width: none;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 18px 42px -30px rgb(15 23 42 / .32);
  }

  .auth-password-heading h2 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .auth-password-heading p {
    line-height: 1.45;
  }
}

@media (max-width: 359px) {
  .auth-shell--illustrated .auth-intro {
    grid-template-columns: minmax(0, 1fr) 5.25rem;
    column-gap: .75rem;
  }

  .auth-shell--illustrated .auth-illustration {
    width: 5.25rem;
  }

  .auth-shell--illustrated .auth-card {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-password-submit,
  .auth-password-back {
    transition: none;
  }
}
