Hi Gracie
I'm glad to hear the issue resolved itself and that you're able to sign in and use Windows normally again.
Since the system eventually started working after several hours without any specific repair steps, it's difficult to determine the exact cause. It may have been a temporary startup, profile, or Windows component loading.
As a precaution, it would still be a good idea to run SFC and DISM integrity checks and make sure Windows is fully updated. If the problem returns, please start a new thread with any error messages or Event Viewer logs so the community can investigate further.
Thanks for providing the update, and I'm glad your PC is working again.