Quadratic forms, local-global principles, and field invariants