@viewport {
  width: device-width;
  zoom: 0.5;
}

:root {
  --logo: url('../images/mm-logo-full-color.svg');
}

* {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  justify-content: center;
  min-height: 100vh;
  min-width: 400px;
  font-size: 16px;
  font-family: 'Segoe UI', 'Source Sans Pro', sans-serif;
  line-height: 18pt;
  margin: 0;
  padding: 0;
  height: 100vh;
}

form > input {
  display: block;
  border-radius: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  line-height: 2.4rem;
  padding: 0.2rem 1rem;
  color: var(--clr-text-secondary);
  font-size: 0.8rem;
  -webkit-text-fill-color: var(--clr-text-secondary);
  -webkit-transition-delay: 9999s;
}

.pageContainer {
  margin: 0 auto;
  flex-direction: column;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  align-items: center;
}

.branding{
  margin-top: 17vh;
}


.branding,
#loginForm {
  margin-left: 5%;
  margin-right: 5%;
}

form {
  width: 35em;
}

.logo {
  max-width: 40rem;
  padding-top: 10rem;
  margin-left: -1rem;
  margin-bottom: 2rem;
}

.buttonGroup {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
  padding-left: 2em;
}

.buttonGroup > button {
  margin: 1rem 0 0 1rem;
}

form > label {
  font-size: 0.9rem;
}

form > input:focus {
  border: 1px solid hsl(220, 20%, 90%);
  transition: 0.2s;
}

form > *:placeholder {
  font-style: italic !important;
}

button {
  padding: 0.8rem 1.6rem;
  border-radius: 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

form > button:focus {
  opacity: 0.9;
}

.marketingSpace {
  margin: 0 auto;
}

.marketingSpace img {
  max-height: 100%;
  max-width: 100%;
}

.footer {
  font-size: 0.7rem;
  color: var(--clr-text);
  letter-spacing: 0.02rem;
}

.footer a {
  text-decoration: none;
  color: var(--clr-text);
  padding: 0 0.5rem;
  font-size: inherit;
}

.footer a:hover {
  text-decoration: underline;
}

.cancel {
  background-color: #7e909a;
  border-color: #71818a;
}

#errorContainer {
  margin: 0 auto;
  width: 50%;
  border-radius: 0.2rem;
  border: 2px solid rgba(245, 198, 203, 1);
  background-color: rgba(248, 215, 218, 1);
  padding: 1rem 2rem;
  text-align: center;
}

#errorMessage {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(114, 28, 36, 1);
}

/* for client-side form validation */
.requirements {
  height: auto;
  transition: 0.28s;
  overflow: hidden;
  color: #ff5454;
  font-style: italic;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: -0.8rem;
  margin-bottom: 1rem;
}

.logo {
  content: var(--logo);
}

#footerContainer {
  justify-content: center;
  display: flex;
  margin-left: 10%;
  margin-right: 5%;
  margin-top: 2vh;
}

#bottomBanner {
  width: 35rem;
  height: auto;
  margin-top: 5rem;
  margin-bottom: 1rem;
  margin-left: 3rem;
}

.footer {
  margin-left: 5rem;
}

#leftBanner {
  width: auto;
  height: 100vh;
  float: left;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* override default browser autofill styles -- the ugly yellow background fill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--clr-text-secondary);
  -webkit-transition-delay: 9999s;
  box-shadow: 0 0 0 100px var(--clr-input-bg) inset;
}

input:autofill{
  background: var(--clr-input-bg);
}

@keyframes autofill {
  100% {
    background: var(--clr-input-bg);
    color: var(--clr-text-secondary);
  }
}

@-webkit-keyframes autofill {
  100% {
    background: var(--clr-input-bg);
    color: var(--clr-text-secondary);
  }
}

@font-face {
  font-family: 'MM Sprite Symbol';
  src:
          url('../assets/mm-sprite-symbol.woff2') format('woff2'),
          url('../assets/mm-sprite-symbol.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@media screen and (max-width: 750px) {
  .branding .logo {
    width: 55%;
    height: auto;
    float: left;
    padding-top: 18vh;
    padding-left: 1rem;
  }

  .buttonGroup {
    flex-wrap: wrap;
    padding-left: 0em;
  }

  .buttonGroup > button,
  form {
    margin: 0 0 0.5rem 2rem;
    width: 100%;
  }

  .pageContainer {
    padding-right: 0;
    padding-left: 0;
  }

  form {
    width: 75vw;
  }

  #bottomBanner,
  .footer {
    margin-left: 0;
  }

  #bottomBanner {
    width: 100%;
    height: auto;
  }

  .footer {
    margin: 0 1rem;
  }

  #loginForm {
    padding: 0 1rem;
  }

  #footerContainer{
    font-size: 7px;
  }
}

@media screen and (width < 1200px) {
  #leftBanner {
    display: none;
  }
  #bottomBanner {
    display: none;
  }
  #bigContainer{
    display: flex;
    align-self: center;
  }

  #footerContainer {
    margin-top: 30vh;
    margin-left: 5%;
  }


}