/* Password helper styles */

/* Fix eg_login form float - doesn't work with pw hint/alerting */
.formRow#formRowxdonorcoderow,
.formRow#formRowxpassword {
  float: none;
}
.hintWrapper {
  display: inline-block;
  position: relative;
}
.relWrapper {
  position: relative;
}

.pwAlert {
  display: none;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: bold;
  font-size: 12px;
  box-sizing: content-box;
  padding: 2px 4px 6px 4px;
  line-height: 1;
  background: #ffffff;
  width: auto;
  filter: drop-shadow(rgba(0, 0, 0, 0.35) 0 1px 1px);
  -webkit-filter: drop-shadow(rgba(0, 0, 0, 0.35) 0 1px 1px);
}

.pwAlert:after {
  top: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0);
  border-top-color: #ffffff;
  border-width: 7px;
  margin-left: -7px;
}

.pwAlert img {
  width: 18px;
  height: 18px;
  position: relative;
  top: 4px;
  margin-right: 2px;
  max-width: none;
  vertical-align: baseline;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /* IE10+ hack for inadequacy of filter: drop-shadow ; */
  .pwAlert {
    box-shadow: 0px 5px 8px 3px rgba(0,0,0,0.2);
  }
}

/* Show/Hide password link */
.hint {
  color: #777;
  cursor: pointer;
  display: block;
  font-size: 12px;
  margin: 0.3rem 0;
  padding: 0.1rem;
  text-align: right;
}

#egLoginForm .hint {
    margin: -16px auto 4px auto;
    padding: 8px 0 12px 0;
  }

@media only screen and (max-width: 40em) {
  #loginform .hint {
    width: 90%;
    margin: 0 auto;
    padding: 1rem 0 0 0;
  }
  #cglogin .hint {
    margin: 0 auto;
    padding: 1rem 0;
  }
  .hintWrapper {
    display: block;
    max-width: 350px; }
  td .hintWrapper {
    display: inline-block;
  }
  .login-page .hintWrapper {
    max-width: inherit;
  }

}
