/*
 * Sign-in page background: the photo from tidequest.net (config.json
 * branding.welcome_background_url). It is portrait, and Element centres it
 * with `cover`, which on a landscape screen crops the top third where the
 * horizon and the sunset are. Shift the crop up so they stay in view.
 * Element sets the background inline, hence !important.
 */
.mx_AuthPage {
  background-position: center 28% !important;
}

/* Phones: the sign-in box shrinks to the width of its text (about 170px on
   a 390px screen). Give the box the screen width less a margin, and let its
   content fill it. Only widths: changing the box's margins breaks the
   background behind it. */
@media (max-width: 599px) {
  .mx_AuthPage_modal {
    width: calc(100vw - 32px) !important;
    box-sizing: border-box;
  }
  .mx_AuthPage_modalContent {
    flex: 1 1 auto !important;
  }
  .mx_AuthBody {
    width: auto !important;
    flex: 1 1 auto !important;
    box-sizing: border-box;
  }
}
