I was just wondering for a school project.Thanks, Ben.
This should cover it. https://null-byte.wonderhowto.com/how-to/hack-wi-fi-creating-evil-twin-wireless-access-point-eavesdrop-data-0147919/
But how do you make the login page
There are numerous ways, you could try DNS spoofing. https://null-byte.wonderhowto.com/how-to/hack-like-pro-spoof-dns-lan-redirect-traffic-your-fake-website-0151620/
Really sounds like an Evil Twin access point. As for the login pages, you can copy a website and host a copy locally (which is fine, as long as the target is on your network) with the Social Engineering Toolkit. I assume you're familiar with Kali Linux, but if not, there are many great tutorials on this site for it. A more realistic scenario for this (and possibly easier) requires the following:
Setting up an Evil Twin access point (like Barrow said) https://null-byte.wonderhowto.com/how-to/hack-wi-fi-creating-evil-twin-wireless-access-point-eavesdrop-data-0147919/
Setting up a fake login page https://null-byte.wonderhowto.com/how-to/use-set-social-engineer-toolkit-0147454/ You'll need the Website Attack Vectors and the Credential Harvesting method for this one
DNS spoofing (also like Barrow said) https://null-byte.wonderhowto.com/how-to/hack-like-pro-spoof-dns-lan-redirect-traffic-your-fake-website-0151620/
Good luck :)
You can use Fluxion, it has predefined templates
Fluxion?Edit: Just found it
Thanks everyone for helping me solve the problem.