Melatonin controls your circadian rhythms, including your sex steroid hormones. Artificial light can suppress melatonin and disrupt these rhythms!
Sasseville, A., Paquet, N., Sevigny, J., & Hebert, M. (2006). Blue blocker glasses impede the capacity of bright light to suppress melatonin production. Journal of Pineal Research, 41(1), 73–78. https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1600-079X.2006.00332.x
Artificial light at night: melatonin as a mediator between the environment and epigenome. Philosophical Transactions of the Royal Society B: Biological Sciences, 370(1667), 20140121–20140121. https://royalsocietypublishing.org/doi/10.1098/rstb.2014.0121
Navara, K. J., & Nelson, R. J. (2007). The dark side of light at night: physiological, epidemiological, and ecological consequences. Journal of Pineal Research, 43(3), 215–224. https://onlinelibrary.wiley.com/doi/full/10.1111/j.1600-079X.2007.00473.x