I had this issue a month ago. I fixed it by right clicking on TF2 in the Libary > properties > Local Files > Verify Integrity of Game Cache. Hope this helps!
If this is your first time logging in after the migration (Feb 8, 2022), you must reset your password to log in. Follow this guide if you're having trouble