Ability to further handle pop-up windows when login attempts are unsuccessful.
Modified the return value of the `keep_login_status` function to indicate whether the operation was successful or failed.
In case of a failure, no further command actions will be executed.
Updates the screen clearing function to provide a more robust cross-platform solution. It now attempts to reset text attributes on Windows and uses `shutil.which` to locate the `clear` command on Unix-like systems, falling back to ANSI escape codes if necessary.
This change improves the screen-clearing function, ensuring its effectiveness regardless of the operating system or available commands.