If \[ \frac{(x+1)^2}{x^3+x} = \frac{A}{x} + \frac{Bx+C}{x^2+1}, \] then \[ \sin^{-1}\!\left(\frac{A}{C}\right)=\_ \]