You can also configure you bathroom with multiple lights where some are connected to dumb motion sensors. e.g. Panasonic makes bathroom fans with a primary light and a night light - you can connect the night light to something like a Lutron Maestro motion sensor that goes in the wall where your light switches are. (Or if you want to get fancy, you can get a ceiling-mounted motion sensor and a radio-capable Maestro switch/dimmer that can communicate only locally with the motion sensor.)
You can do this without connected devices, depending on the configuration of your bathroom!
You can get night lights that plug into an outlet, turn on when it’s dark, and brighten when they sense motion. I have some Casper ones (that also let you disable the motion sensing): https://www.amazon.com/Casper-Sleep-Glow-Night-Light/dp/B09L...
You can also configure you bathroom with multiple lights where some are connected to dumb motion sensors. e.g. Panasonic makes bathroom fans with a primary light and a night light - you can connect the night light to something like a Lutron Maestro motion sensor that goes in the wall where your light switches are. (Or if you want to get fancy, you can get a ceiling-mounted motion sensor and a radio-capable Maestro switch/dimmer that can communicate only locally with the motion sensor.)