HTTP status 404 (error) when trying to log in

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );

Add this to your wp-config.php which you can find in the root of your website. Remember to change example.com to your URL.