Tìm nguyên hàm F(x) của hàm số \(f\left(x\right)=\dfrac{1}{\sin^2x}\) thỏa mãn \(F\left(\dfrac{\pi}{2}\right)=1\).