html,
body {
  background:
    linear-gradient(
      180deg,
      rgba(1, 165, 236, 0.58) 0%,
      rgba(89, 58, 214, 0.58) 100%
    ),
    url(../static/img/splash-background.jpg) no-repeat fixed right top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100%;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

h1 {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 48px;
  margin: 0 auto 0 auto;
  color: #1c325d;
}

a {
  font-family: 'Baloo 2';
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 29px;
  display: flex;
  align-items: center;
  color: #4a2acb;
  margin: 10px auto 0 0;
}

.panels {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: stretch;
  width: 90vw;
  max-width: 800px;
}

.panel {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 19px;
  min-width: 596px !important;
  min-height: 777px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.left {
  background: #ffffff;
  padding-right: 4%;
}

form[name='login'] {
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: space-between;
  margin-bottom: 15vh;
  margin-top: 9vh;
  width: 65%;
}

input[type='text'],
input[type='password'] {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #4a2acb;
  border-radius: 5px;
  height: 48px;
  padding: 6px 10px;
  box-shadow: none;
  box-sizing: border-box;

  /* Removes awkward default styles on some inputs for iOS */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type='text']:focus,
input[type='password']:focus {
  border: solid 2px #4a2acb;
  background-color: #e4f3fb;
  outline: 0;
}

button[type='submit'] {
  background-color: #4a2acb;
  left: 46%;
  color: #f0ba8c;
  border: none !important;
}

.right {
  background: #4c2ec6;
  z-index: 1;
  margin-left: -4%;
}

.right img {
  margin-top: -60px;
}

.right h1 {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 48px;
  width: 80%;
  text-align: center;
  margin: 34px auto 0 auto;
  color: #ffffff;
}

.right p {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-size: 1.25rem;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

#right-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
}

label {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  text-align: left;
  width: 80% !important;
  margin: 20px auto 0 0;
  color: #1c325d;
}

#login-error {
  display: none;
  align-items: start;
  border-radius: 0px;
  box-shadow: none;
  letter-spacing: 0.01071em;
  background-color: #f9e5e4;
  color: #972232;
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  gap: 10px;
  line-height: 140%;
  box-sizing: border-box;
  padding: 0.5rem;
}

#login-error img {
  margin: 6px;
}

.button,
button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 1.75rem;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box;
  width: 12.5rem;
  height: 3.5rem;
  max-height: 3.5rem;
  padding: 1rem 2rem;
  font-family: 'Baloo 2';
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
  align-self: center;
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  transition:
    background-color 300ms forwards,
    color 300ms forwards;
}
.button:hover,
button:hover {
  background-color: #37119d;
  outline: 0;
}

.button:focus,
button:focus,
.button:active,
button:active,
.button:target,
button:target {
  background-color: #4a2acb;
  outline: #4a2acb solid 3px;
  outline-offset: 4px;
}

.button:visited,
button:visited {
  background-color: #5c33ff;
}

#hide-mfa {
  display: none;
}

.mfaField {
  display: none;
}

.mfa-button {
  bottom: 24px;
  cursor: pointer;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 200px;
}

#register-button {
  border: 3px solid #f0ba8c !important;
  color: #f0ba8c;
}

#mobile-header {
  display: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  left: 0px;
  top: 0px;
  background: #4a2acb;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  border-radius: 0px 0px 19px 19px;
  min-height: 101px;
  align-items: start;
  color: #fff;
  z-index: 2;
}

#mobile-header img {
  margin: 27px 32px 0 auto;
  text-align: center;
}

#mobile-header h1 {
  color: #fff;
  text-align: left;
  margin: 27px auto 0 0;
}

@media only screen and (max-width: 960px) {
  body {
    height: auto;
  }
  main {
    width: 100%;
    min-width: none !important;
  }
  #mobile-header {
    display: flex;
  }
  .panels {
    flex-direction: column;
    margin: 0;
    width: 100%;
    max-width: none;
  }
  .panel {
    width: 100% !important;
    border-radius: 0;
    min-width: 100px !important;
    margin: 0 auto 0 auto;
  }
  .right {
    margin-left: 0px;
  }
  .left {
    margin-top: -40px;
    z-index: 1;
  }
  form[name='login'] {
    margin-top: 30px;
  }
}
