My textbook says that all magnetism can be linked to circulating current. In an atomic level, the magnetic fields are generated due to electrons revolving about their nuclei. Taking the case of a simple hydrogen atom placed in an external magnetic field $B_{ext}$.
The external magnetic field is into the plane of screen and so is the magnetic field produced by the atom. The external magnetic field can be thought of a South pole of a magnet behind the (hydrogen) atom. The magnetic field produced by the atom can be thought of a bar magnet with South Pole out of the screen. As north and south pole attract, the force due to external magnetic $F_{B_{ext}}$ field should be towards the magnet behind the atom. However the net force is perpendicular to that expected and if we take many atoms, the net force should be zero.
What went wrong here?