This plugin will load the login module in to a modal window instead of being redirected to a new page.
Install and enable the plugin
Create and configure a login module and publish in a new position called modal
The modal will be triggered by the css selector defined in the plugin.
By default any link containing "login" will trigger the modal but it can also be used for a button.