This project demonstrates how to use a Blazor component to login rather than cshtml files, allowing for MudBlazor styling of the login screen.
I used code from the following user for the middleware https://github.com/MarcoTheFirst so credit should go to him for the solution to this issue.