/* psi-overflow: the sign-in page and the error page, one centred column each. */

/* sign-in shell */

.auth,
.shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth__column,
.shell__column {
    width: 100%;
    max-width: 23rem;
    /* Optically centred: a touch above the middle reads as deliberate. */
    margin-bottom: 3rem;
}

.auth__brand {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: var(--psi-overflow-ink-soft);
    margin-bottom: 1.5rem;
}

.auth__title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.auth__panel {
    margin-bottom: 0;
    box-shadow: var(--psi-overflow-shadow-raise);
}

/* error pages (the column itself is laid out with the sign-in shell's), and
   the legal links under the card on both */

/* It wraps, so each item keeps its space below and to the left as a margin,
   and the paragraph takes the last line's and its left edge back: the items wrap
   where they would with flex `gap`, which Safari 13 does not know. Below
   rather than above, so its own top margin collapses as it always did. */
.shell__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.15rem 0 0 -1.25rem;
    font-size: 0.85rem;
}

/* Named twice to outrank `p:last-child`. */
.shell__links.shell__links {
    margin-bottom: -1.25rem;
}

.shell__links > * {
    margin-bottom: 1.25rem;
    margin-left: 1.25rem;
}

.shell__links a {
    color: var(--psi-overflow-ink-faint);
    text-decoration: none;
}

.shell__links a:hover {
    color: var(--psi-overflow-accent);
    text-decoration: underline;
}

/* One panel, one way out. Nothing else on the page competes with it. */
.error-panel {
    margin: 0;
    box-shadow: var(--psi-overflow-shadow-raise);
}

.error-panel__title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.error-panel__body {
    color: var(--psi-overflow-ink-soft);
    margin-bottom: 1.15rem;
}

/* Under the error page's card, where it has no masthead to sit in. */
.shell__column > .language-switch {
    justify-content: center;
    margin-top: 1rem;
}
