With 2-step login on, signing in on a new device asks for your password and a 6-digit code from an app on your phone. Someone who learns your password still cannot get in.