SSO: Code style nitpicks.
Instead of checking $_GET, let's check the global.

Basing it off of
https://github.com/WordPress/WordPress/blob/36a1e543d6e172f1ae4daca2da3e
360fdece8e56/wp-login.php#L406-L414

Also some minor restructuring.