.portal-login-erro {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.portal-login-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: wait;
    touch-action: none;
    user-select: none;
}

.portal-login-loading[hidden] {
    display: none !important;
}

.portal-login-loading__inner {
    text-align: center;
}

.portal-login-loading__inner img {
    width: 72px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.portal-login-loading__inner p,
.portal-login-loading__msg {
    margin: 0;
    font-size: 15px;
    color: #333;
    min-height: 1.4em;
}

body.portal-login-busy {
    overflow: hidden;
    pointer-events: none;
}

body.portal-login-busy .portal-login-loading {
    pointer-events: auto;
}

.entrar-conta .btn-entrar:not(:disabled),
.entrar-conta input.btn-entrar:not(:disabled) {
    cursor: pointer;
}

/* Modal: multi-cliente — painel único limpo (sem “caixa na caixa”) */
.nl-clientes-modal {
    --nl-orange: #ef7c05;
    --nl-ink: #1c1c1c;
    --nl-muted: #5c5c5c;
    --nl-line: #ececec;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(20, 24, 28, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: nl-clientes-fade 0.22s ease-out;
}

@keyframes nl-clientes-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nl-clientes-modal__panel {
    position: relative;
    width: min(440px, 100%);
    max-height: min(84vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 4px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: nl-clientes-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nl-clientes-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nl-clientes-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #8a8a8a;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.nl-clientes-modal__close:hover {
    color: var(--nl-ink);
    background: #f3f3f3;
}

.nl-clientes-modal__eyebrow {
    margin: 0 40px 6px 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nl-orange);
}

.nl-clientes-modal__title {
    margin: 0 40px 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--nl-ink);
}

.nl-clientes-modal__text {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--nl-muted);
}

.nl-clientes-modal__group-title {
    margin: 0 0 8px;
    padding-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0a8f8a;
    border-bottom: 1px solid var(--nl-line);
}

.nl-clientes-modal__group + .nl-clientes-modal__group {
    margin-top: 20px;
}

.nl-clientes-modal__list {
    margin: 0;
}

.nl-clientes-modal__card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--nl-line);
    border-radius: 0;
    background: transparent;
    padding: 14px 4px;
    margin: 0;
    cursor: pointer;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.nl-clientes-modal__group .nl-clientes-modal__card:last-child {
    border-bottom: 0;
}

.nl-clientes-modal__card:hover,
.nl-clientes-modal__card:focus-visible {
    background: #fff8f1;
    outline: none;
    padding-left: 8px;
}

.nl-clientes-modal__card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.nl-clientes-modal__card-name {
    font-weight: 600;
    color: var(--nl-ink);
    font-size: 0.98rem;
    line-height: 1.3;
}

.nl-clientes-modal__card-doc {
    font-weight: 600;
    color: #444;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

.nl-clientes-modal__card-go {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--nl-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease;
}

.nl-clientes-modal__card:hover .nl-clientes-modal__card-go {
    background: #d4500b;
    transform: translateX(2px);
}

@media (max-width: 480px) {
    .nl-clientes-modal {
        padding: 0;
        align-items: flex-end;
    }

    .nl-clientes-modal__panel {
        width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        padding: 28px 20px 28px;
    }
}
