/* Shared layout for the login, signup and Google-completion pages.
   Load after auth.css. */

/* Nav is fixed: a bar at the bottom on mobile, a bar at the top from 768px.
   auth.css used to zero the body's top padding, so the desktop navbar sat on
   top of tall cards. These explicit paddings reserve the space instead, and
   margin:auto on the card centres it in whatever room is left. */
body.auth-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px var(--space-3) calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px);
}

@media (min-width: 768px) {
    body.auth-page {
        padding: calc(var(--nav-height) + 32px) var(--space-3) 32px;
    }
}

.auth-page .form-space {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.auth-page .form-space--wide {
    max-width: 560px;
    padding: var(--space-5) clamp(16px, 5vw, 44px);
}

/* Keep the Google completion card at its existing width. */
.auth-page.google-completion-page .form-space {
    max-width: 640px;
}

.auth-page .messages {
    flex: none;
    width: min(100%, 620px);
    margin: 0 auto 16px;
}

.form_options--center,
.form_options--center p {
    text-align: center;
}