A structural and computational analysis of molecular mechanisms for membrane adaptation to extreme stress