Different keyboard on login screen

Keyboard problem. I installed Zorin 17.3 and configured the keyboard correctly. However, the keyboard is always different on the login screen when I start the computer.

When I enter my password, the letter "C" corresponds to "J", the letter "A" corresponds to "L", etc.

To get around this problem, I enabled the virtual keyboard, on which I type the password using the mouse. When I log in and enter the password, the keyboard returns to the default one it was configured for. There is only 1 input source configured in Portuguese (Brazil).

Sounds like GDM is not honoring your keyboard layout.
Can you please run in terminal:

sudo dpkg-reconfigure keyboard-configuration

Follow the prompts to select Portuguese - Brazil...

sudo dpkg-reconfigure console-setup

sudo update-initramfs -u