Why not have the login icon in a placeholder.
On clicking the icon the placeholder page moves on to a log-in dialogue form.
Filling in the log-in form and clicking Submit runs the php file and...