Creating a web/mobile application

Need help creating the login form & home page without them blending together when trying to edit them.

There are many was to do this is a SPA apps. Client side routing is one example of how you would approach that.