A contest-math number theory problem
If $x,y,z \in \mathbb{N}$ and $xy=z^2+1$, prove that there exist integers $a$, $b$, $c$, $d$ such that $x=a^2+b^2$, $y=c^2+d^2$, $z=ac+bd$.
After working for 20 hours, I learned that there is a solution using complex numbers. But I have no idea about the solution. I don't know what will come out of this.
$$xy=(z-i)(z+i)$$
I guess if I could prove that $x = (a-bi)(a+bi)$ and that $y=(c-di)(c+di)$ then maybe I would get a result.
But I don't know how to relate this to the fact that $a, b, c, d$ are integers.
Question 1: (Main)
Can we find a solution using pure number theory without using a complex numbers?
Question 2:
How can a solution be made using complex numbers?
I would love to get a detailed answer. Thank you!