$layout-breakpoint-desktop: 768px; @mixin center-elements { display: flex; justify-content: center; align-items: center; } .wrapper { @include center-elements; min-height: 100vh; background-color: white; } .login { display: flex; flex-direction: column; justify-content: space-between; background-color: white; margin: 0; height: 250px; width: 100%; padding: 25px 10px; img { display: block; margin-left: auto; margin-right: auto; } } @media (min-width: 768px) { .login { box-shadow: 4px 5px 17px -11px rgba(0, 0, 0, 0.75); height: 320px; width: 380px; padding: 25px 30px; margin-bottom: 100px; } .wrapper { background-color: transparent; } }