.auth-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--site-header-height));
  padding: 5vh 6vw;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.auth-page > * {
  position: relative;
  z-index: 2;
}

.auth-page__panel {
  inline-size: min(100%, 28rem);
  padding: 1em;
  border: var(--border-width-1) solid;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.auth-page__panel > h1 {
  text-align: center;
}

.auth-page__footer {
  text-align: center;
}

.auth-page__forgot {
  margin-block-start: auto;
  text-align: center;
}

.auth-page form.login-form .auth-form__field,
.auth-page form.register-form .auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
