/* Only login/signup: use the real viewport instead of the shared desktop scale.
   Keep natural scrolling for errors, short windows, browser zoom and keyboards. */
html.ud-ui-scale-app:has(.auth-fit-r3) {
  zoom: 1 !important;
  min-height: 100%;
  background: #6352e4 !important;
  color-scheme: light;
}
html.ud-ui-scale-app > body.public-body:has(.auth-fit-r3) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: auto !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #6352e4 !important;
}
.public-body:has(.auth-fit-r3) > main {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.public-body .auth-section.auth-fit-r3 {
  flex: 1 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
/* Keep decorative glows inside the page, without clipping forms or messages. */
.public-body .auth-section.auth-fit-r3::before { left: 0 !important; }
.public-body .auth-section.auth-fit-r3::after { right: 0 !important; }
.public-body .auth-fit-r3 .auth-fit-links {
  width: 100%;
  box-sizing: border-box;
  align-self: center;
  justify-content: center;
}
