Photosensitive kinase and response regulator that is involved in increased bacterial virulence upon exposure to light. ATP + protein L-histidine = ADP + protein N-phospho-L-histidine. FMN binds covalently to cysteine after exposure to blue light and this bond is spontaneously broken in the dark.