How can I change the login manager background?

I installed endeavour sway.

You are using the SDDM display manager, right? If so, you can find your answer here:

https://wiki.archlinux.org/title/SDDM

Check out section 2.3.3 in the article.