Two-nucleon transfer and pairing phase transition