Magnetic phase diagram of light-mediated spin structuring in cold atoms