Clarification of electron behaviour in pi bonds needed
Background: Grade 11 student who recently got introduced to s, p, d, f orbitals (so simplicity would be appreciated)
So according to my understanding, any orbital can only contain a maximum of 2 electrons of opposite spins due to the Pauli exclusion principle. However, when one pi-bond is formed, the y or z p-orbitals in two atoms overlap in the space above and below the previously-formed sigma bond.
My question: if one pi bond only contains two electrons and two p-orbitals were used to create the bond, there seems to be a deficit of two electrons since we started with four electrons and ended with two. Where do those two electrons that are not involved in the pi bond go, and how do they behave? Surely, they can't be in the same space as the new pi-bond orbital due to electron repulsion.