.portal-nav {
    height: auto;
    min-height: 60px;
    gap: 12px;
    padding: 8px 24px;
    box-sizing: border-box;
}

.portal-login-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* Toutes les fenêtres du portail (connexion et erreurs SSO), pas seulement .sso-popup. */
.portal-nav .login-btn,
.swal2-popup .sso-control {
    min-width: 44px;
    min-height: 44px;
}

.sso-popup .swal2-cancel {
    background: #4b5563;
    color: #fff;
}

.portal-nav .login-btn:focus-visible,
.swal2-popup .sso-control:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

.login-choice-popup .login-fields label {
    display: block;
    margin: 12px auto 6px;
    max-width: 32rem;
    text-align: left;
    font-weight: 600;
}

.login-choice-popup .login-fields .swal2-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 32rem;
    min-height: 44px;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid #64748b;
    border-radius: 5px;
    background: #fff;
    color: #17212b;
    font: inherit;
}

.login-choice-popup .login-fields .swal2-input:focus,
.microsoft-login:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    max-width: 32rem;
    color: #4b5563;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #94a3b8;
}

.microsoft-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 32rem;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #6b7280;
    border-radius: 4px;
    background: #fff;
    color: #17212b;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.microsoft-login:hover {
    background: #f3f4f6;
}

.microsoft-mark {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    gap: 2px;
}

.microsoft-mark i {
    width: 9px;
    height: 9px;
    background: #f25022;
}

.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.login-choice-popup .swal2-actions {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .portal-nav {
        padding: 8px 12px;
    }

    .portal-nav .logo img {
        max-width: 60px;
        object-fit: contain;
    }

    .portal-nav .login-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}
