Phase structure of an Abelian two-Higgs model and high-temperature superconductors