How can LM324 work in dual supply mode when it only has 2 pins for the supply?
The op-amp only knows about the voltage between its power pins.  It doesn't know or care where you think "ground" (zero volts) is.

The circuit around the op-amp will determine where "ground" is relative to the op-amp's power supply pins.