The project template for your shared code is ".NET MAUI Class Library".
You can put your LoginPage.xaml and other shared code there and reference this library from your other projects. Then you should be able to navigate to it as if it were directly in there.