The problem probably is, that hammer looks for "Team Fortress 2/hl2/gameinfo.txt", but the actual file is at "Team Fortress 2/tf/gameinfo.txt"
Could you open "bin/set_sdk_env.bat" with a text editor and paste its content here
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