.portal-auth {
    padding: 64px 0 72px;
    background: #eef3f8;
}

.portal-auth .container {
    max-width: 1060px;
}

.portal-auth__shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    min-height: 620px;
    border: 1px solid #d3dde7;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 35, 60, 0.12);
}

.portal-auth__brand {
    display: flex;
    flex-direction: column;
    padding: 44px;
    background: #102b4b;
    color: #ffffff;
}

.portal-auth__brand img {
    width: 160px;
    max-height: 52px;
    margin-bottom: 56px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.portal-auth__brand > span,
.portal-auth__header > span {
    margin-bottom: 10px;
    color: #8bbceb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-auth__brand h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: var(--title-font, "Outfit", sans-serif);
    font-size: 1.2em;
    line-height: 1.25;
}

.portal-auth__brand p {
    margin: 0;
    color: #d5dfeb;
    font-size: 14px;
    line-height: 1.75;
}

.portal-auth__brand small {
    margin-top: auto;
    color: #aebfd0;
    font-size: 12px;
    line-height: 1.6;
}

.portal-auth__panel {
    align-self: center;
    width: min(430px, calc(100% - 56px));
    margin: 0 auto;
    padding: 46px 0;
}

.portal-auth__header {
    margin-bottom: 26px;
}

.portal-auth__header > span {
    display: block;
    color: #286fb7;
}

.portal-auth__header h1 {
    margin: 0 0 10px;
    color: #15385e;
    font-family: var(--title-font, "Outfit", sans-serif);
    font-size: 1.4em;
    line-height: 1.25;
}

.portal-auth__header p,
.portal-auth__support {
    margin: 0;
    color: #667382;
    font-size: 14px;
    line-height: 1.7;
}

.portal-auth__form {
    display: grid;
    gap: 16px;
}

.portal-auth__field label {
    display: block;
    margin-bottom: 6px;
    color: #293b4f;
    font-size: 13px;
    font-weight: 700;
}

.portal-auth__field .form-control,
.portal-auth__field .form-select {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1f2f40;
}

.portal-auth__field .form-control:focus,
.portal-auth__field .form-select:focus {
    border-color: #286fb7;
    box-shadow: 0 0 0 3px rgba(40, 111, 183, 0.12);
}

.portal-auth .btn-login {
    min-height: 48px;
    border: 1px solid #15385e;
    background: #15385e;
    color: #ffffff;
    font-weight: 700;
}

.portal-auth__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 2px;
}

.portal-auth__links a {
    color: #286fb7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.portal-auth__support {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #d7e0e8;
    background: #f3f6f8;
    font-size: 12px;
}

@media (max-width: 850px) {
    .portal-auth__shell {
        grid-template-columns: 1fr;
    }

    .portal-auth__brand {
        min-height: 290px;
        padding: 32px;
    }

    .portal-auth__brand img {
        margin-bottom: 34px;
    }

    .portal-auth__brand small {
        margin-top: 28px;
    }
}

@media (max-width: 575px) {
    .portal-auth {
        padding: 42px 0 50px;
    }

    .portal-auth__brand {
        padding: 26px 22px;
    }

    .portal-auth__brand h2 {
        font-size: 1.2em;
    }

    .portal-auth__panel {
        width: calc(100% - 36px);
        padding: 34px 0;
    }

    .portal-auth__header h1 {
        font-size: 1.4em;
    }
}

/* Flat corners required for this page */
.portal-auth,
.portal-auth * {
    border-radius: 0 !important;
}