Until recently i played minecraft until my pc broke i bought a new one and installed minecraft again but when i opened the launcher for the first time i couldn't log in with my mojang account i have no idea how i should access minecraft now I thank you in advance.
When you start the Laucher you will be shown the choice of a Mojang Accound and a Microsoft Accound.
Otherwise you can log off your account etc. In the corner of the screen: