/* Auth screens use the document as their only scroll container. */
.auth-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-page .auth-page-brand,
.auth-page .auth-page-card {
  flex: 0 0 auto;
  margin-right: auto;
  margin-left: auto;
}

.auth-page .auth-page-card {
  width: min(100%, 440px);
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
}

.auth-page .auth-steps,
.auth-page .auth-steps li,
.auth-page .auth-form {
  min-width: 0;
}

@media (max-width: 760px) {
  .auth-page,
  .auth-page:focus-within {
    justify-content: center;
    padding: 20px 16px;
  }

  .auth-page .auth-form input {
    scroll-margin-bottom: 24px;
  }
}

@media (max-height: 620px) {
  .auth-page,
  .auth-page:focus-within {
    justify-content: flex-start;
  }
}
