.auth-page {
    background: #fff;
}

.portal > main {
    min-width: 0;
}

.auth-shell {
    width: min(440px, calc(100% - 40px));
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    align-content: center;
    align-items: stretch;
    gap: 24px;
}

.auth-brand {
    display: block;
    width: 100%;
    max-width: 440px;
    justify-self: center;
    padding: 10px 12px 8px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
}

.auth-brand .brand-logo {
    width: 347px;
    max-width: 100%;
    margin: 0 auto;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.auth-brand .brand-product {
    display: block;
    margin: 4px 6px 0;
    color: #526172;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.sidebar .brand {
    display: block;
    padding: 8px 9px;
    background: #fff;
    border-radius: 4px;
}

.sidebar .brand-product {
    margin: 6px 10px 0;
    color: #91a5b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.site-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #657384;
    font-size: 11px;
}

.site-credit a {
    display: block;
    line-height: 0;
}

.site-credit img {
    display: block;
    width: 190px;
    height: auto;
}

.portal-credit {
    box-sizing: border-box;
    width: 100%;
    margin: 34px 0 22px;
    padding-top: 18px;
    border-top: 1px solid #d8e0e8;
    transform: none;
    flex-direction: column;
    gap: 7px;
}

.portal-credit img {
    width: 320px;
}

.auth-credit {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
}

.auth-credit img {
    width: 220px;
}

@media (max-width: 980px) {
    .auth-page {
        background: #fff;
    }

    .auth-brand {
        max-width: 440px;
    }

    .auth-credit {
        color: #657384;
    }

    .portal-credit {
        width: 100%;
        transform: none;
    }
}

@media (max-width: 620px) {
    .auth-credit {
        position: static;
        grid-column: 1;
        transform: none;
        min-width: 0;
        padding: 18px 0 24px;
        flex-direction: column;
    }

    .portal-credit {
        width: 100%;
        margin: 28px 0 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-credit img {
        width: min(320px, calc(100vw - 56px));
    }
}
