/* Hide the visual scrollbar on NSPA/NPA login and 2FA screens.
   The login shell can still scroll when 2FA/QR content is taller than the viewport. */

html:has(.login-shell) {
  width: 100vw;
  min-width: 100vw;
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
  background: #06151d !important;
}

html:has(.login-shell),
html:has(.login-shell) body,
html:has(.login-shell) #root {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 100%;
  overflow-x: hidden !important;
}

html:has(.login-shell) body,
html:has(.login-shell) #root {
  overflow-y: hidden !important;
}

html:has(.login-shell) #root {
  min-height: 100vh;
}

html:has(.login-shell) .login-shell {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(.login-shell) .login-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
