You styled a dark page, and then a white input box and a white scrollbar spoil it.
:root {
color-scheme: light dark;
}
The browser now draws its own parts (inputs, scrollbars, default backgrounds) in the scheme of the visitor. It does not restyle your own colours, so you still need your own dark variables or prefers-color-scheme rules.
Further reading: color-scheme on MDN