I feel like it's possible, but how would i make one?
And would it work if i made a webserver on my localhost for my script to access with
Hey, haven't you already made such a login system? What do you want to change in it?
Have you thought about how you're going to handle authentication? Are you going to authenticate with your local database using something like OAuth or using an external auth provider like Google, Facebook, etc. or both?