I am unable to find a proof for these integrals on the internet. emphasized text $$\displaystyle \int_0^{\frac{\pi}{2}} \cot^{-1}(\sqrt{1+\csc{\theta}}\,) \, \text{d}\theta = \frac{\pi^2}{12}$$
$$\displaystyle \int_0^\frac{\pi}{2} \csc^{-1}(\sqrt{1+\cot{\theta}}\,) \, \text{d}\theta = \frac{\pi^2}{8}$$
Sources: Brilliant, AoPS
I tried differentiating under the integral sign but I can't think of an appropriate parameter that leaves easily integrable rational functions.
I have tried exploiting the bounds to reflect and transform the integrand but to no avail.
A real solution is preferred but a complex solution is perfectly acceptable.
A geometric solution is not something I have considered but I'm just grasping at straws here.