Customise hosted login page to redirect elsewhere for a given email domain

I think you need to use rules for that. This should get you going in the right direction: