Customize Password Protected page

Hey all, I’m trying to customize the password protected page by adding a bit of flavour to it. In particular, I’m trying to make the error message load with a specific animation without having to reload the entire page. In fact, I applied a loading animation to the entire “Utility wrapper”, and as the page reloads when the password is incorrect, the whole wrapper will reload with it.

Do you know how I can let the whole wrapper load for the first time the page opens, and then selectively only animate the error message if the password is incorrect?

Adding a pic of the page design here:

Check also the screen recording of the actual animation here:
Screen recording

Thanks in advance!