I've been stuck with this for a while now. I have this chain of reasoning that would imply $e^{-\pi}=e^\pi$, obviously false, since $e^\pi$ and $e^{-\pi}$ are two real distinct numbers and so I must have made an assumption somewhere that I cannot actually do. I know I have to be very careful when working with complex numbers, especially when they're in the exponents, and so I tried to make the steps as small as I could so that it would be easier to point out where it went wrong.
\begin{align} e^{-\pi}&= e^{\pi\cdot -1}\tag{1}\\ &=e^{\pi\cdot i^2}\tag{2}\\ &= e^{\pi\cdot i\cdot i}\tag{3}\\ &= \left(e^{\pi\cdot i}\right)^i\tag{4}\\ &= (-1)^i\tag{5}\\ &=\left(\tfrac{1}{-1}\right)^i\tag{6}\\ &=\left((-1)^{-1}\right)^i\tag{7}\\ &=(-1)^{-1\cdot i}\tag{8}\\ &=(-1)^{-i}\tag{9}\\ &=\left(e^{i\pi}\right)^{-i}\tag{10}\\ &=e^{i\pi\cdot -i}\tag{11}\\ &=e^{-i^2\pi}\tag{12}\\ &=e^\pi\tag{13} \end{align} I suspect it has something to do with changing the base from $e$ to $-1$, but what does that mean? Are complex powers only defined for positive bases? Any help is appreciated.