/* =========================
   LOGIN MODAL
   ========================= */

/* Overlay */
#id01.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.65);
}

/* Neutralize Bootstrap layout inside the popup */
#id01 .cont-login,
#id01 .row,
#id01 .col-12 {
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Popup card */
#id01 .login-modal {
  width: 320px;
  max-width: calc(100vw - 32px);
  height: auto;
  min-height: 0;
  margin: 180px auto 24px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* Form */
#id01 #login-form {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

/* Header and logo */
#id01 .imgcontainer {
  position: relative;
  margin: 0;
  padding: 20px 44px 12px;
  text-align: center;
}

#id01 img.avatar {
  display: block;
  width: auto;
  max-width: 210px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
}

/* Close button */
#id01 .close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  color: #000;
  font-size: 35px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

#id01 .close:hover,
#id01 .close:focus {
  color: #eb1000;
}

/* Form sections */
#id01 form > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}

/* Labels */
#id01 label {
  display: block;
  margin-top: 4px;
  color: #2c2c2c;
  text-align: center;
}

/* Inputs */
#id01 input[type="text"],
#id01 input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 12px;
  padding: 12px 38px 12px 12px;
  border: 1px solid #ccc;
}

/* Password field */
#id01 .pw-container {
  position: relative;
  width: 100%;
}

#id01 #myEye {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 23px;
  height: auto;
  cursor: pointer;
}

/* Buttons */
#id01 .btn-login-form {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 40px;
  margin: 16px auto;
  border-radius: 999px;
}

#id01 .cancelbtn,
#id01 .btn-danger {
  color: #fff;
  background-color: #eb1000;
  border-color: #eb1000;
}

#id01 .cancelbtn:hover,
#id01 .btn-danger:hover,
#id01 .cancelbtn:focus,
#id01 .btn-danger:focus {
  color: #fff;
  background-color: #c90e00;
  border-color: #c90e00;
}

/* Footer */
#id01 .pswFooter p {
  margin: 0;
  padding-top: 18px;
  color: #2c2c2c;
  text-align: left;
}

/* Caps Lock warning */
#id01 #text {
  display: none;
  margin: 4px 0 10px;
  color: red;
  font-size: 14px;
}

/* Error message */
#id01 .alert-danger,
#id01 .alert-danger h4,
#id01 .alert-danger p {
  color: #842029;
}

/* Opening animation */
#id01 .animate {
  animation: animatezoom 0.35s;
}

@keyframes animatezoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  #id01.modal {
    padding: 12px;
  }

  #id01 .login-modal {
    width: 100%;
    margin: 40px auto 12px;
  }
}