/* Login, register, and password reset. The page title replaces the site header. */

.app-shell--gate .auth-brand__back {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.app-shell--gate .auth-brand__back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.app-shell--gate .auth-panel__title {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.app-shell--gate .auth-foot__shop {
  display: inline;
}

/* The form grows with the page. It is not a nested scrollport.
   The brand panel stays a viewport-tall column and sticks while the form scrolls. */
.app-shell--gate #main-content {
  height: auto;
  min-height: 100dvh;
}

.app-shell--gate .auth-shell {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow: visible;
  align-items: start;
}

.app-shell--gate .auth-main {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding-top: 1.25rem;
}

.app-shell--gate .auth-panel {
  height: auto;
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
  overscroll-behavior: auto;
}

@media (min-width: 960px) {
  .app-shell--gate .auth-brand {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
}

@media (max-width: 1023px) {
  .app-shell--gate .auth-shell {
    min-height: calc(100dvh - var(--mobile-tabbar));
  }
}
