You can remember the meaning of 晚安 with this easy mnemonic:
The late (晚) night wine party made me so content (安) with life. Time to say good night and head to bed.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.