Quantum phase transitions in a spin ladder with long-range couplings