/*
 * The sign-in dialog every page carries (layouts/hub.blade.php, opened by showLogin() in c/login-modal.js).
 * Its base styles are in templates/home.css and templates/login.css. Two things went wrong there:
 * the dialog sat at z-index 10, under the header chrome (the globe is at 99), and on short windows
 * its form ran below the bottom edge, so people had to hunt for it by scrolling the page behind it.
 * Here the dialog sits above the chrome, scrolls inside itself from the top, and the page behind stays put.
 */
.login.d-flex {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(24px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));
    background: rgba(8, 20, 48, .72);
}
@media (min-height: 720px) {
    .login.d-flex { align-items: center !important; }
}
.login.d-flex .login__wrapper {
    flex: none;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
/* The dark backdrop now comes from .login itself */
.login.d-flex .login-overlay { display: none !important; }
html.hub-login-open,
html.hub-login-open body { overflow: hidden; }
