/* Ações de autenticação compartilhadas entre todos os temas do website builder */

.wb-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilos de botão pill — apenas temas não-Elegant (Elegant usa .elegant-nav-icon) */
.wb-auth-actions:not(.wb-auth-actions--elegant) .wb-auth-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--primary-color, #0d6efd);
    color: var(--primary-color, #0d6efd);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.wb-auth-actions:not(.wb-auth-actions--elegant) .wb-auth-entry-btn:hover {
    background: var(--primary-color, #0d6efd);
    color: #fff;
    transform: translateY(-1px);
}

.wb-auth-menu {
    position: relative;
    display: inline-flex;
}

.wb-auth-actions:not(.wb-auth-actions--elegant) .wb-auth-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wb-auth-actions:not(.wb-auth-actions--elegant) .wb-auth-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.wb-auth-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    padding: 0.85rem;
    z-index: 1200;
}

.wb-auth-menu-panel[hidden] {
    display: none !important;
}

.wb-auth-menu-header {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

.wb-auth-menu-subtitle {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 0.35rem;
}

.wb-auth-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.wb-auth-menu-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.wb-auth-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.55rem 0;
}

.wb-auth-nav-item .wb-auth-actions,
.menu-auth .wb-auth-actions {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .wb-auth-nav-item {
        width: 100%;
        margin-top: 0.5rem;
    }

    .wb-auth-nav-item .wb-auth-actions,
    .menu-auth .wb-auth-actions {
        width: 100%;
        justify-content: center;
    }

    .wb-auth-menu-panel {
        min-width: 220px;
    }
}
