I've always showered at night, because I like to wash away the grime and worries of the day before getting into my nice clean bed.
I towel dry my hair at night, then sleep with it loose, and it's fine in the morning. I have very long, straight hair. it doesn't really tangle, even when I forget the conditioner, probably because I don't toss and turn too much? No idea, really.
Other people have recommended satin pillowcases for tangles at night. Or, you could braid it loosely even if it's still wet to avoid tangles - but only if you like the curly poufy look the next morning when you undo the braid and brush it! My daughter loves it