If the 'After login behavior' property has been set to 'FocusPanelCard' then after the user has logged in, this Panel Card gets focus.

The name of this Panel Card must be set in the 'Target Panel' property in the 'Login' section of the Component Properties.

The logout button will log the user out and return focus to the 'Login' panel.
The name of 'Login' Panel is set in the 'Login panel' property in the 'Login' section of the Component Properties.

The Logout button has this code:
    { dialog.object}.logout(true);
    { dialog.object}.panelSetActive({ dialog.object}._afterLogin.loginPanel)