Okta-to-Okta IdP

I have two separate Okta applications in two different organizations. One of them is a simple CRUD based diary SPA while the other is a replica of the diary application but with an original login UI that I have developed. How can I use the application with the original login UI as the SSO/IdP for the diary SPA? I can elaborate more if needed