Coupled electrodynamics in the nighttime midlatitude ionosphere