Let $N$ be a fixed positive integer that is not a square and $m$ be any nonzero integer. Let $x$ and $y$ be positive integers that solve $$x^2 - N y^2 = m^2$$ with $x + y$ minimal (in light of the comment below, please take $m$ to be 1).
What is known about upper bounds for $x$ and $y$?