This happened to me, i found out later that it was because i allowed the mac to update...but didn’t have enough storage for the update. So my mac was stuck in between a update but kept failing the update and not letting me log in. So they told me to restart in target disk mode, i think what this does is...it allows you to save your files/doc onto another computer and then you can delete things on the mac to make storage to continue the update. Now onto how i actually fixed mine.... i shut down the mac when the option was available and as soon as i pressed the power off button, i next pressed Command and R at the same time, this took me to recovery mode. I had to delete storage from the mac since i did not have another laptop at disposable so i sadly had to restart my entire mac and clear everything. Once I did that i had enough space for the update, and then was given the option to re-download MacOS Sur. Sorry for the long post hope it does help anyone, since apple was kind enough not to help me