The HTML for the login popup is in the ‘footer-default.php’ template under the // Login popup window
comment.
Keep in mind that if you modify core theme files then each time you update the theme you will need to make all of those modifications again to the updated theme files.