Removed a lot of duplicate code by creating a "transitionToLoginMixin".
Reformat SCSS.