2. It pops up a username/password screen. The user types in their credentials for realbank.com.
3a. The owners of fakebank.com use your creds to log in to realbank.com and are presented with a TOTP page.
3b. fakebank.com loads another page that asks the user for their TOTP. The user enters it, still thinking they are logging in to realbank.com
4. The owners of fakebank.com use the TOTP to authenticate as the user with realbank.com.
Entire SDKs to automate this are sold on the black market.