/* Public home page: split screen on desktop, stacked below the breakpoint. */
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/public-sans/public-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
    --home-text: #22262b;
    --home-muted: #5d636a;
    --home-faint: #6b7178;
    --home-line: #e3e6ea;
    --home-field-line: #c8cdd3;
    --home-link: #2d5f96;
    --home-link-hover: #1c4573;
    --home-action: #3d4249;
    --home-action-hover: #2a2e33;
    --home-photo-bg: #20272f;
    --home-focus: rgba(45, 95, 150, .16);
    --home-font: 'Public Sans', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.home {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: var(--home-text);
    font-family: var(--home-font);
}

.home a {
    color: var(--home-link);
}

.home a:hover {
    color: var(--home-link-hover);
}

.home-photo {
    position: relative;
    flex: 1.3 1 0;
    min-width: 0;
    overflow: hidden;
    background: var(--home-photo-bg);
}

.home-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-panel {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    padding: 40px clamp(24px, 4vw, 64px);
}

.home-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.home-logos a {
    display: block;
}

.home-logos img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.home-main {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    padding: 48px 0;
}

.home-notice {
    margin: 30px 0 0;
    padding: 10px 12px;
    background: #eef3f9;
    border-radius: 6px;
    color: #2f3c4a;
    font-size: 13.5px;
    line-height: 1.55;
}

.home-notice strong {
    font-weight: 700;
}

.home-main h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.home-intro {
    margin: 8px 0 28px;
    color: var(--home-muted);
    line-height: 1.5;
}

.home-message {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.home-message--error {
    background: #fbeceb;
    color: #9c2a22;
}

.home-message--success {
    background: #e8f4ec;
    color: #1f6b3a;
}

.home-main label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.home-main input[type="text"],
.home-main input[type="password"] {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid var(--home-field-line);
    border-radius: 6px;
    color: var(--home-text);
    font: 400 16px var(--home-font);
}

.home-main input[type="password"] {
    margin-bottom: 20px;
}

.home-main input:focus {
    border-color: var(--home-link);
    outline: none;
    box-shadow: 0 0 0 3px var(--home-focus);
}

.home-main .home-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--home-action);
    color: #fff;
    font: 600 15px var(--home-font);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.home-main .home-submit:hover {
    background: var(--home-action-hover);
}

.home-forgot {
    margin: 14px 0 0;
    font-size: 14px;
}

.home-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.home-footer p {
    margin: 0;
}

/* The support line comes first in the markup, as on mobile. */
.home-address {
    order: 1;
    text-align: center;
}

.home-support {
    order: 2;
    text-align: center;
}

.home-support .home-phone {
    color: var(--home-text);
    font-weight: 700;
}

.home-copyright {
    order: 3;
    color: var(--home-faint);
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 900px) {
    .home {
        flex-direction: column;
    }

    .home-photo {
        flex: 0 0 220px;
    }

    .home-panel {
        flex: 1 0 auto;
        padding: 24px 24px 20px;
    }

    .home-logos img {
        width: 130px;
    }

    .home-main {
        flex-grow: 0;
        margin: 0 auto;
        padding: 28px 0;
    }

    .home-main h1 {
        font-size: 1.625rem;
    }

    .home-intro {
        margin: 6px 0 22px;
    }

    .home-main input[type="text"] {
        margin-bottom: 14px;
    }

    .home-main input[type="password"] {
        margin-bottom: 18px;
    }

    .home-main .home-submit {
        min-height: 48px;
        font-size: 16px;
    }

    .home-forgot {
        text-align: center;
    }

    .home-forgot a {
        display: inline-block;
        padding: 6px 8px;
    }

    .home-footer {
        gap: 12px;
        margin-top: auto;
        padding-top: 18px;
        text-align: center;
    }

    .home-support {
        order: 0;
    }

    .home-support .home-mail {
        display: block;
    }
}
