.auth-page-shell {
  /* Keep the showcase side visually continuous when an auth form makes the
     document taller than the viewport. The form panel paints its own surface. */
  background: var(--ak-auth-accent);
}

.auth-showcase {
  overflow: hidden;
}

.auth-carousel,
.auth-showcase-placeholder {
  height: auto;
}

.auth-carousel {
  width: 100%;
  align-content: center;
  grid-template-rows: auto auto;
}

.auth-carousel-viewport,
.auth-showcase-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: var(--ak-auth-accent);
}

.auth-carousel-viewport .carousel-inner,
.auth-carousel-viewport .carousel-item,
.auth-slide-link {
  width: 100%;
  height: 100%;
}

.auth-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 992px) {
  .auth-showcase {
    min-height: 100vh;
    min-height: 100svh;
    align-self: stretch;
    justify-content: center;
  }

  .auth-carousel,
  .auth-showcase-placeholder {
    width: min(100%, calc((100svh - 7rem) * 4 / 3));
    height: auto;
    max-height: none;
    margin-inline: auto;
  }
}
