I agree with your remark about loving your enemy as far as actions are concerned. But for me the cognitive basis is the trust in an unrestricted causality.
Source:On the Christian maxim 'Love thy enemy', in a letter to Michele Besso (January 6, 1948)