Signatures of phase transition in wave dynamics of complex systems