In the "BorderIcons" property of the login form, just set the "biSystemMenu" and "biMinimize" parameters to "True".
Also in the login form declare the following Procedure :
...
private
{ Private declarations }
procedure WMSysCommand(var Message: TWMSysCommand); message WM_SYSCOMMAND;
...
implementation
{$R *.dfm}
procedure TFrmLogin.WMSysCommand(var Message: TWMSysCommand);
begin
if (message.cmdtype and $FFF0) = SC_MINIMIZE then
begin
EnableWindow(Application.handle, true);
Application.Minimize;
end else
inherited;
end;
The Procedure causes the entire application to be minimized by minimizing the form, even if it has been called with "ShowModal".
Note: Because it is a Login screen, please check for security reasons if there are no other ways to close the screen without proper authentication.