.portal-login-body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(11, 29, 23, 0.68), rgba(11, 29, 23, 0.34)),
        url("/static/img/fondo2-1.jpg") center 50% / cover no-repeat;
    color: #172018;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.portal-language-switcher {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.portal-language-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 950;
}

.portal-language-switcher button.is-active {
    background: #ffffff;
    color: #203525;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.portal-language-switcher .portal-flag {
    display: block;
    width: 24px;
    height: 16px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(32, 53, 37, 0.16);
}

.portal-flag--gb {
    background:
        linear-gradient(90deg, transparent 43%, #ffffff 43% 57%, transparent 57%),
        linear-gradient(0deg, transparent 39%, #ffffff 39% 61%, transparent 61%),
        linear-gradient(90deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
        linear-gradient(0deg, transparent 44%, #c8102e 44% 56%, transparent 56%),
        linear-gradient(34deg, transparent 43%, #ffffff 43% 54%, transparent 54%),
        linear-gradient(-34deg, transparent 43%, #ffffff 43% 54%, transparent 54%),
        linear-gradient(34deg, transparent 47%, #c8102e 47% 51%, transparent 51%),
        linear-gradient(-34deg, transparent 47%, #c8102e 47% 51%, transparent 51%),
        #012169;
}

.portal-flag--es {
    background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.portal-flag--nl {
    background: linear-gradient(180deg, #ae1c28 0 33.33%, #ffffff 33.33% 66.66%, #21468b 66.66% 100%);
}

.portal-flag--fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.portal-flag--de {
    background: linear-gradient(180deg, #000000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.portal-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.72fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    width: min(1180px, calc(100% - 40px));
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(22px, 3.8vh, 36px) 0 clamp(120px, 20vh, 190px);
}

.portal-auth-shell {
    display: grid;
    justify-items: center;
    align-items: start;
    width: min(100%, calc(100% - 32px));
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(44px, 8vh, 72px) 0 clamp(130px, 22vh, 190px);
}

.portal-auth-shell--wide {
    width: min(980px, calc(100% - 40px));
}

.portal-auth-two-column {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(260px, 0.62fr);
    gap: 18px;
    align-items: start;
    width: 100%;
}

.portal-auth-card {
    width: min(520px, 100%);
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.portal-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid #dfe8d9;
    border-radius: 16px;
    background: #f7faf5;
}

.portal-auth-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 5px;
}

.portal-auth-brand span {
    color: #203525;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #203525;
    color: #ffffff;
    font-size: 20px;
}

.portal-auth-icon--warning {
    background: #9a3412;
}

.portal-auth-message {
    margin: 18px 0;
    padding: 13px 14px;
    border: 1px solid #dfe8d9;
    border-radius: 14px;
    background: #f7faf5;
    color: #667267;
    font-size: 13px;
    line-height: 1.45;
}

.portal-auth-side-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(16px);
}

.portal-auth-side-card h3 {
    margin: 6px 0 14px;
    color: #203525;
    font-size: 22px;
    font-weight: 900;
}

.portal-auth-side-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-auth-side-card li {
    position: relative;
    padding-left: 24px;
    color: #536158;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.portal-auth-side-card li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #b5d7a7;
    box-shadow: 0 0 0 4px rgba(181, 215, 167, 0.22);
}

.portal-auth-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #667267;
    font-size: 12px;
}

.portal-auth-actions a,
.portal-auth-actions span {
    color: #203525;
    font-weight: 900;
    text-decoration: none;
}

.portal-auth-actions span {
    color: #667267;
    font-weight: 700;
    text-align: right;
}

.portal-auth-primary-link {
    text-decoration: none;
}

.portal-login-brand-panel {
    display: grid;
    gap: clamp(16px, 2.2vw, 26px);
    color: #ffffff;
}

.portal-login-brand-top {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.portal-login-brand-top img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    padding: 6px;
}

.portal-login-brand-top span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-login-kicker {
    margin: 0 0 10px;
    color: #b5d7a7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-login-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 5.3vw, 64px);
    font-weight: 900;
    line-height: 0.98;
}

.portal-login-copy > p:last-child {
    max-width: 610px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.55;
}

.portal-login-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 760px;
}

.portal-login-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(14px);
}

.portal-login-trust-strip b {
    font: inherit;
}

.portal-login-trust-strip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #203525;
    font-size: 11px;
}

.portal-login-office-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-login-office-strip span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 800;
}

.portal-login-card {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.portal-login-card-head {
    margin-bottom: 20px;
}

.portal-auth-card .portal-login-card-head {
    margin-bottom: 14px;
}

.portal-login-card-head h2 {
    margin: 0;
    color: #203525;
    font-size: 32px;
    font-weight: 900;
}

.portal-auth-card .portal-login-card-head h2 {
    font-size: 30px;
}

.portal-login-card-head p {
    margin: 8px 0 0;
    color: #667267;
    font-size: 14px;
    line-height: 1.45;
}

.portal-auth-card .portal-login-card-head p {
    margin-top: 6px;
}

.portal-login-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 800;
}

.portal-login-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid #dfe8d9;
    border-radius: 16px;
    background: #f4f8f1;
}

.portal-login-tab {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #667267;
    font-size: 13px;
    font-weight: 900;
}

.portal-login-tab.is-active {
    background: #ffffff;
    color: #203525;
    box-shadow: 0 10px 22px rgba(32, 53, 37, 0.10);
}

.portal-login-tab-panel {
    display: none;
}

.portal-login-tab-panel.is-active {
    display: block;
}

.portal-login-panel-note {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #dfe8d9;
    border-radius: 14px;
    background: #f7faf5;
    color: #667267;
    font-size: 13px;
    font-weight: 750;
}

.portal-login-google,
.portal-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    text-decoration: none;
}

.portal-login-google {
    background: #203525;
    color: #ffffff;
}

.portal-login-google:hover {
    background: #315b36;
    color: #ffffff;
}

.portal-login-form #div_id_username,
.portal-login-form #div_id_password,
.portal-login-form .form-group,
.portal-login-form .mb-3 {
    margin-bottom: 13px;
}

.portal-auth-card .portal-login-form #div_id_username,
.portal-auth-card .portal-login-form #div_id_password,
.portal-auth-card .portal-login-form .form-group,
.portal-auth-card .portal-login-form .mb-3 {
    margin-bottom: 10px;
}

.portal-login-form label {
    color: #536158;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-login-form .form-control {
    min-height: 46px;
    border: 1px solid #d8e2d5;
    border-radius: 13px;
    background: #fbfdf9;
    color: #203525;
}

.portal-auth-card .portal-login-form .form-control {
    min-height: 42px;
}

.portal-login-form ul {
    margin: 8px 0 12px;
    padding-left: 18px;
    color: #667267;
    font-size: 12px;
}

.portal-login-form .invalid-feedback,
.portal-login-form .text-danger {
    color: #991b1b !important;
    font-size: 12px;
    font-weight: 750;
}

.portal-login-form .form-control:focus {
    border-color: #315b36;
    box-shadow: 0 0 0 0.18rem rgba(49, 91, 54, 0.14);
}

.portal-login-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.portal-login-form #passwordButton {
    min-width: 48px;
    border: 1px solid #d8e2d5;
    border-left: 0;
    border-radius: 0 13px 13px 0;
    background: #eef6ea;
    color: #203525;
}

.portal-login-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
}

.portal-login-form .form-check-input {
    margin: 0;
    border-color: #b9cbb5;
}

.portal-login-form .form-check-input:checked {
    background-color: #203525;
    border-color: #203525;
}

.portal-login-form .form-check-label {
    margin: 0;
    color: #536158;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.portal-login-submit {
    background: #b5d7a7;
    color: #203525;
}

.portal-login-submit:hover {
    background: #9fc89e;
}

.portal-login-staff-panel {
    padding: 20px;
    border: 1px solid #dfe8d9;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(32, 53, 37, 0.07), rgba(255, 255, 255, 0)),
        #f7faf5;
    text-align: center;
}

.portal-login-staff-panel > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #203525;
    color: #ffffff;
    font-size: 18px;
}

.portal-login-staff-panel h3 {
    margin: 12px 0 6px;
    color: #203525;
    font-size: 19px;
    font-weight: 900;
}

.portal-login-staff-panel p {
    margin: 0 0 16px;
    color: #667267;
    font-size: 13px;
    line-height: 1.45;
}

.portal-login-help-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #667267;
    font-size: 12px;
}

.portal-auth-card .portal-auth-actions {
    margin-top: 14px;
}

.portal-login-help-row a {
    color: #203525;
    font-weight: 900;
    text-decoration: none;
}

.portal-login-help-row a[data-i18n="helpText"] {
    color: #667267;
    font-weight: 750;
    text-align: right;
}

.portal-login-help-row a:hover,
.portal-auth-actions a:hover {
    color: #315b36;
    text-decoration: underline;
}

.portal-login-help-row span {
    text-align: right;
}

@media (max-width: 960px) {
    .portal-login-shell {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 28px));
    }

    .portal-auth-two-column {
        grid-template-columns: 1fr;
    }

    .portal-login-copy h1 {
        font-size: clamp(36px, 10vw, 56px);
    }

}

@media (max-width: 560px) {
    .portal-language-switcher {
        top: 14px;
    }

    .portal-language-switcher button {
        min-width: 34px;
        min-height: 30px;
    }

    .portal-login-shell {
        padding: 54px 0 120px;
    }

    .portal-login-brand-top {
        width: 100%;
    }

    .portal-login-help-row {
        flex-direction: column;
    }

    .portal-login-help-row span {
        text-align: left;
    }

    .portal-auth-actions {
        flex-direction: column;
    }

    .portal-auth-actions span {
        text-align: left;
    }
}
