Incase you want to be as non WP independant as possible; for instance in a plugin keeping future changes out of scope. You can use something like this:
function is_login_page() {
return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));
}