@font-face {
    font-family: "FIAMM Helvetica Neue Local";
    src: url("../fonts/helveticaneue.woff2") format("woff2"),
         url("../fonts/helveticaneue.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FIAMM Helvetica Neue Local";
    src: url("../fonts/helveticaneue-bold.woff2") format("woff2"),
         url("../fonts/helveticaneue-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --fiamm-red: #e0251b;
    --fiamm-ink: #1d1d1b;
    --fiamm-fog: #f6f6f4;
    --fiamm-border: #dddcd8;
}

body.portal-login-page {
    min-height: 100vh;
    font-family: "FIAMM Helvetica Neue Local", "Helvetica Neue", "Helvetica", Arial, sans-serif;
    color: var(--fiamm-ink);
    background: #f6f6f4;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

.portal-shell {
    width: min(1020px, 92%);
    margin: 0 auto;
}

.portal-panel {
    border: 1px solid var(--fiamm-border);
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
}

.portal-panel > [class*="col-"] {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
}

.portal-brand {
    background: #fff;
    color: var(--fiamm-ink);
    padding: 1.65rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-right: 1px solid var(--fiamm-border);
}

.portal-brand::after {
    content: none;
}

.brand-logo {
    display: block;
    max-width: min(190px, 58%);
    width: 100%;
    height: auto;
    margin: 0;
}

.portal-login {
    padding: 1.7rem;
    background: #fff;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--fiamm-border);
    overflow: hidden;
}

.lang-switch a {
    min-width: 44px;
    text-align: center;
    text-decoration: none;
    color: #415266;
    padding: 0.25rem 0.65rem;
    font-weight: 600;
    font-size: 0.82rem;
    background: #fff;
}

.lang-switch a.active {
    background: var(--fiamm-red);
    color: #fff;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.portal-login-page .form-control {
    border-radius: 0;
    border: 1px solid #cbd6e2;
    padding: 0.65rem 0.85rem;
}

.btn-fiamm {
    background-color: var(--fiamm-red);
    border: 1px solid var(--fiamm-red);
    color: #fff;
    border-radius: 0;
    font-weight: 700;
    padding: 0.72rem 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-fiamm:hover {
    background-color: #c81f16;
    border-color: #c81f16;
    color: #fff;
}

.btn-fiamm:focus,
.btn-fiamm:focus-visible {
    background-color: #c81f16;
    border-color: #c81f16;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(224, 37, 27, 0.25);
}

.btn-fiamm:active,
.btn-fiamm.active {
    background-color: #b71b13;
    border-color: #b71b13;
    color: #fff;
}

.portal-copyright {
    text-align: center;
    margin-top: 1rem;
    color: #6a6967;
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .portal-shell {
        width: min(960px, 94%);
    }

    .portal-panel {
        grid-template-columns: 5fr 7fr;
    }

    .portal-brand,
    .portal-login {
        padding: 1.35rem;
    }

    .brand-logo {
        max-width: 130px;
    }

    .login-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .portal-panel {
        grid-template-columns: 1fr;
    }

    .portal-brand,
    .portal-login {
        padding: 1.5rem;
    }

    .portal-brand {
        border-right: 0;
        border-bottom: 1px solid var(--fiamm-border);
    }

    .brand-logo {
        max-width: 160px;
    }

}
