13" MacBook Pro (Mid-2012) failing to fully boot
You can run Apple's built it hardware test, Turn on your Mac, then immediately press and hold the D key on your keyboard. Keep holding the D key until you see the Apple Hardware Test

I feel it could be a graphics card issue because it seems to play up when you  get to the login screen where the computer actually requires the use of the graphics card.