
#login-panel {
  width: 320px;
}

#login-panel .login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #e6e6e6;
  border: none;
  border-radius: 10px;
}

.login-form label {
  width: 100%;
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  font-size: 16px;
}

.login-form label > span {
  display: block;
  padding-top: 4px;
}

.login-form .input-block {
  /* position: relative; */
  display: flex;
  flex-direction: column;
}

.login-form input {
  width: 160px;
  height: 26px;
  padding: 4px;
  border: 1px solid #b6b6b6;
  border-radius: 4px;
  outline: none;
  color: #4a4a4a;
}


@-moz-document url-prefix() {
  .login-form input[type="password"] {
    font-size: 10px;
  }
}

.login-form input:-webkit-autofill {
  -webkit-box-shadow:0 0 0 50px #fff inset;
  box-shadow: 0 0 0 50px #fff inset;
  -webkit-text-fill-color: #4a4a4a;
}

.login-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 50px #efefef inset;
  box-shadow: 0 0 0 50px #efefef inset;
  -webkit-text-fill-color: #333;
}

.login-form #stay-logged-in-label {
  position: relative;
  width: initial;
  margin-top: 6px;
  flex-direction: row-reverse;
  gap: 10px;
  cursor: pointer;
}

.login-form #stay-logged-in-label > span {
  padding-top: 0;
}

.login-form #stay-logged-in-label input {
  /* opacity: 0;
  height: 0;
  width: 0; */
  display: none;
}

.checkmark {
  position: relative;
  top: 3px;
  height: 16px;
  width: 16px;
  background-color: #ffffff;
  border: 1px solid #b6b6b6;
  border-radius: 4px;
}

.login-form #stay-logged-in-label input:checked ~ .checkmark {
  background-color: #7d7d7d;
}

.checkmark::after {
  position: absolute;
  left: 4px;
  top: -2px;
  width: 5px;
  height: 10px;
  content: "";
  display: none;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 2px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.login-form #stay-logged-in-label input:checked ~ .checkmark::after {
  display: block;
}

.login-form button {
  width: 30%;
  padding: 6px;
  margin-top: 12px;
  border: 1px solid #b6b6b6;
  border-radius: 6px;
  color: #969696;
  background-color: #efefef;
  cursor: pointer;
}

.login-form button:hover {
  color: #7d7d7d;
  background-color: rgba(255, 255, 255, 0.73);
  text-shadow: 1px 1px 1px #969696;
  box-shadow: inset 1px 1px 1px #b3b3b3, inset -1px -1px 1px #b3b3b3;
}

.login-form .input-block .logerror {
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  color: rgb(109, 29, 29);
  padding-left: 5px;
}

.login-form label[for="password"] {
  position: relative;
}

.login-form #show-password-icon {
  position: absolute;
  /* top: 50%; */
  top: 3px;
  right: 6px;
  width: 20px;
  height: 20px;
  background-image: url("../assets/icons/eye.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
  border-radius: 50%;
  /* transform: translateY(-50%); */
  cursor: pointer;
  transition: background-color 300ms ease;
}

.login-form #show-password-icon:hover {
  background-color: #d8d8d8;
}

.login-form #show-password-icon.shown {
  background-image: url("../assets/icons/eye-slash.svg");
}

.login-form #show-password-icon::before {
  position: absolute;
  bottom: -21px;
  right: -15px;
  width: 88px;
  content: "Show password";
  font-size: 11px;
  opacity: 0;
  white-space: nowrap;
  border: 1px solid #d8d8d8;
  padding: 0 4px;
  border-radius: 4px;
  background: #f7f7f7;
  text-align: center;
  transition: opacity 500ms ease-in-out;
}

.login-form #show-password-icon:hover::before {
  opacity: 1;
}

.login-form #show-password-icon.shown::before {
  content: "Hide password";
}

.login-form #show-password-icon:active::before {
  opacity: 0;
}