One can classify the prime integers $p$ which can be written as $p=a^2+b^2$ for some integers $a,b\in\mathbb{Z}$ by studying how $p$ decomposes in the ring of Gauss integers $\mathbb{Z}[i]$.
Most proofs I have seen, at some point, reason as follows:
$p$ is a sum of two squares iff $p$ is non-irreducible in $\mathbb{Z}[i]$ iff $-1$ is a square in $\mathbb{Z}/(p)^*$.
In order to prove this, some ugly chain of isomorphisms $\mathbb{Z}[i]/(p)\simeq \ldots \simeq (\mathbb{Z}/(p))[X]/(X^2+1)$ is written down, and then one concludes that $X^2+1$ has a root in $\mathbb{Z}/(p)$ if $p$ is non-irreducible in $\mathbb{Z}[i]$.
My question is this: I find this chain of isomorphisms kind of ugly and unpleasant. Is there a more direct, conceptual way to see that $p$ is non-irreducible in $\mathbb{Z}[i]$ iff $-1$ is a square in $\mathbb{Z}/(p)^*$?