Evaluate the integral ratio$$\dfrac{I_1}{I_2}=\dfrac{\displaystyle \int_{0}^{\frac{\pi}{2}} \sqrt{1+\frac{1}{\sqrt{1+\tan^nx}}} \mathrm{d}x}{\displaystyle \int_{0}^{\frac{\pi}{2}} \sqrt{1-\frac{1}{\sqrt{1+\tan^nx}}} \mathrm{d}x}$$
Using Wolframalpha, I found out that the ratio of the above two integrals is $\sqrt{2}+1$, that is, independent of $n$. I couldn't think of a way to solve it.
I don't think any simple substitutions would work here. Any useful hints would be appreciated.