I am trying to study the CSIDH algorithm. I have some beginner background in elliptic curves and I have been following Andrew Sutherland's lectures (https://math.mit.edu/classes/18.783/2019/lectures.html) to understand the endomorphism rings and the class group action and how we can apply the theory over complex curves to curves over a finite field. My background in number theory is not that good so this may be just a simple problem.
In CSIDH (page 13) it's mentioned that we the principal ideal $(l)\mathcal{O}$ (where $\mathcal{O}$ is an order in an imaginary quadratic field) splits into two ideals $\mathbb{l}$ and $\mathbb{\overline{l}}$ as in $(l)\mathcal{O}= \mathbb{l}\mathbb{\overline{l}}$ where also $\mathbb{l}, \mathbb{\overline{l}}$ are generated by $(l, \pi \pm 1)$.
Using ideal multiplication I get $$ \mathbb{l}\mathbb{\overline{l}} =(l, \pi + 1)(l, \pi -1) = (l^2, l(\pi -1), l(\pi +1), \pi^2-1) $$ i.e. an element $\alpha \in \mathbb{l}\mathbb{\overline{l}}$ should have the form $$ \alpha = al^2+bl(\pi-1)+cl(\pi+1)+d(\pi^2-1), \{a,b,c,d\} \subseteq \mathcal{O} $$ How do I get that $\alpha = xl$ for some $x \in \mathcal{O}$? Is it just simple simplification and usage of the assumption that $\pi^2= 1 \mod l$ (i.e. the characteristic equation) somehow or is there a more complicated reason?
My other question is where do we get that $\mathbb{l}$, $\mathbb{\overline{l}}$ are generated by those elements?
Thank you in advance. Also pointing to some good resources would help as well. I have been searching throught the cited papers but it's hard to find the right source.