Auroral dynamics and space weather