How to implement generic login using okta

so we want to integrate okta login in our web page. so once user click over okta it will redirect to page where user need to provide the instance name and once successful it will redirect to our web site with user detail.

Any help

Thanks in advance!!