Competition of color ferromagnetic and superconductive states in a quark-gluon system