Extract generic modal component from login UI