html {
  position: relative;
  min-height: 100%;
}

body.reset-pass {
  padding-top: 56px !important;
  min-height: 100vh;
}

.reset-pass .content {
  position: relative;
  background: transparent !important;
  max-width: 22em;
  margin: 0 auto;
  border: none !important;
  box-shadow: none;
}

@media screen and (max-width: 768px) {
  .cta::before,
  .cta:after {
    content: none;
    display: none;
  }
}

p {
  color: white;
}

.login-content {
  margin-bottom: 10px;
}

.login-form,
.forget-form {
  z-index: 5;
  position: absolute;
  top: 0;
  width: 100%;
  transition: all .5s ease-in-out;
}

.forget-form {
  z-index: 0;
}

.login-hidden .login-form {
  opacity: 0;
  top: 10px;
  z-index: -1;
}

.forget-hidden .forget-form {
  opacity: 0;
  top: -10px;
}

.login-hidden .forget-form {
  z-index: 5;
}

.logo {
  position: relative;
  z-index: 5;
}

.content {
  position: relative;
  background: transparent;
  max-width: 22em;
  margin: 0 auto;
}

input[type="text"],
input[type="password"],
input[type="text"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="text"]:-webkit-autofill::first-line,
input[type="password"]:-webkit-autofill::first-line,
input#username,
input#password,
input#username:-webkit-autofill,
input#password:-webkit-autofill,
input#username:-webkit-autofill::first-line,
input#password:-webkit-autofill::first-line {
  height: 45px;
  border: 1px solid transparent;
  width: 100%;
  font-size: 16px !important;
  font-family: "Open Sans", sans-serif;
}

.reset-pass label[for="fullname"].error:before {
  display: none;
}

.reset-pass label[for="newpassword"].error:before {
  display: none;
}

.reset-pass label[for="confirmpassword"].error:before {
  display: none;
}

.reset-pass label[for="newpassword"].bg-green.error,
.reset-pass label[for="newpassword"].bg-yellow.error,
.reset-pass label[for="confirmpassword"].bg-green.error,
.reset-pass label[for="confirmpassword"].bg-yellow.error {
    color: #fff;
}

.reset-pass label[for="newpassword"].bg-grey.error,
.reset-pass label[for="confirmpassword"].bg-grey.error {
  color: #444;
}

.reset-pass label[for="newpassword"].error,
.reset-pass label[for="confirmpassword"].error,
.reset-pass label[for="fullname"].error {
  background: white;
  top: 15px;
  font-weight: normal;
  color: #DB2B38;
  margin-right: 5px;
}

label[for="username"].error {
  background: transparent;
  top: 15px;
  font-weight: normal;
  color: #DB2B38;
}

label[for="reset-email"].error {
  background: white;
  top: 15px;
  font-weight: normal;
  color: #DB2B38;
}

label[for="username"].error:before {
  display: none;
}

label[for="reset-email"].error:before {
  display: none;
}

label[for="password"].error {
  background: transparent;
  position: absolute;
  top: 17px;
  color: #DB2B38;
  font-weight: normal;
}

label[for="authentication_code"].error {
  background: white;
  position: absolute;
  top: 14px;
  color: #DB2B38;
  font-weight: normal;
}

label[for="authentication_code"].error:before {
  display: none;
}

input[type="submit"],
button {
  background: #416d9d;
  width: 100%;
  border-radius: 3px;
  height: 45px;
}

input[type="submit"]:hover,
button:hover {
  background: #375d86;
}

input[type="submit"]:focus {
  background: #416d9d !important;
}

button:disabled:hover, input[type="button"]:disabled:hover, input[type="reset"]:disabled:hover, input[type="submit"]:disabled:hover, .button-primary:disabled:hover, .button-warning:disabled:hover, .button-tertiary:disabled:hover {
    background-color: #416d9d;
}

.form-group .floating-placeholder {
  position: absolute;
  top: 3px;
  left: 12px;
  color: #b6b8bd;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
}

.form-group .form-control:not(:placeholder-shown):not(#authentication_code) {
  padding: 1.05em 0.75em 0.45em;
}

.form-group .form-control:not(:placeholder-shown) + .floating-placeholder,
.form-group .form-control:not(:placeholder-shown) + .error + .floating-placeholder{
  color: #8b8f99;
  font-size: 11px;
  visibility: visible;
  opacity: 1;
}

.form-group input::placeholder {
  color: #969aa6;
}

.newcomer, .controls-2fa {
  display: block;
  padding-top: 18px;
  clear: both;
  font-size: 14px;
  color: white;
}

.newcomer a, .controls-2fa a {
  color: white;
  text-decoration: underline;
}

.newcomer a:hover, .controls-2fa a:hover {
  color: white !important;
}

.controls-2fa {
  margin-bottom: 10px;
}

.controls-2fa.resend-code {
  padding-top: 10px;
}

.form-group {
  position: relative;
  margin-bottom: 5px;
}

.reset-pass .form-group p {
  margin-bottom: 2em;
}

.login-form .form-actions + .form-group {
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 0;
  color: white;
  font-size: .9em;
}

.forgot-pw {
  color: white;
}

.forgot-pw:hover {
  color: white !important;
}

#remember_me, #remember-2fa-permanent {
  width: 0;
  position: fixed;
}

span.remember-checkbox, span.remember-2fa-permanent-checkbox {
  display: inline-block;
  background: white;
  height: 14px;
  width: 14px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  top: 2px;
  margin-right: 3px;
}

span.remember-text, span.remember-2fa-permanent-text {
  cursor: pointer;
}

span.remember-checkbox.checked:before, span.remember-2fa-permanent-checkbox.checked:before {
  content: "\2714";
  position: absolute;
  top: -2px;
  left: 2px;
  color: #30537A;
  font-size: .9em;
}

.remember-2fa-permanent-form {
  margin-top: 12px;
  margin-bottom: 0;
  color: white;
  font-size: .9em;
}

a:not(.button):not(.button-transparent):not(.button-green):not(.button-black):not(.button-gray):not(.button-gray-light):not(.button-white):not(.button-orange):hover {
  text-decoration: none;
  color: white;
}

input[type="submit"]:disabled, button:disabled {
  opacity: 1;
}

button:disabled, input[type="button"]:disabled, input[type="reset"]:disabled, input[type="submit"]:disabled, .button-primary:disabled, .button-warning:disabled, .button-tertiary:disabled {
    cursor: not-allowed;
    opacity: 1 !important;
}

input[type="submit"]:disabled:hover {
  background-color: #416d9d;
}

#forget-password {
  position: absolute;
  right: 1em;
  top: 1em;
  font-size: 13px;
  color: #aaa;
  text-decoration: underline;
}

.login-footer {
  opacity: .5;
  color: white;
  margin-top: 260px;
}

.login-2fa .login-footer {
  margin-top: 0;
}

.login-2fa .heading {
  color: white;
  font-size: 1.7em;
}

.login-footer a {
  color: white;
  text-decoration: underline;
  margin-right: 10px;
}

.login-footer a:hover {
  color: white !important;
}

.alert.alert-danger {
  border: none !important;
  border-radius: 3px !important;
  min-height: 38px;
}

@media screen and (max-width: 359px) {
  .login-form .form-actions + .form-group {
    flex-direction: column;
  }

  .forgot-pw {
    margin-top: 5px;
  }

  .login-footer {
    margin-top: 305px;
  }
}

@media screen and (min-width: 450px) {
  #login-2fa .sms-verification-message {
    margin-left: -2.5em;
    margin-right: -2.5em;
  }
}

@keyframes login-error {
  0% {
    left: 0px;
  }
  10% {
    left: 10px;
  }
  30% {
    left: -10px;
  }
  50% {
    left: 10px;
  }
  70% {
    left: -10px;
  }
  90% {
    left: 10px;
  }
  100% {
    left: 0px;
  }
}

body.inline-error .content {
  animation: login-error .5s;
}

body.logging-in .form-actions:before {
  content: '';
  display: block;
  font-size: 4px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  text-indent: -9999em;
  -webkit-animation: login-loading 1.1s infinite ease;
  animation: login-loading 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  position: absolute;
  right: 20px;
  margin-top: 21px;
}

.login-notice {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  background: #3d648e;
  padding: 1em 1em 0;
  font-size: .875em;
  opacity: .9;
  transition: all .5s cubic-bezier(0.75, 0, 0.25, 1);
}

.login-notice.error {
  background: #db2b38;
  border-bottom: 1px solid #a52e38;
}

.notice-hidden .login-notice {
  top: -50px;
  opacity: 0;
}

#authentication_code {
  text-align: center;
}

.email-changed-message {
  font-size: .9em;
  color: white;
  display: none;
  margin-top: -8px;
}

@-webkit-keyframes login-loading {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
  }

  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
  }

  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}

@keyframes login-loading {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
  }

  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
  }

  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }

  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}
