/* Sign-in modal */
.signin-modal {
  display: none;
  z-index: 9999999;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: calc(120px + 10px) 10px 0 10px;
  align-items: center;
  flex-flow: column nowrap;
}

@media only screen and (max-width: 599px) {
  .signin-modal { padding-top: calc(65px + 10px); }
}

.signin-modal .content {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: auto;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.signin-modal.is-open { display: flex; }

.signin-modal__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.signin-modal__panel {
  position: relative;
  background: #fff;
  padding: 30px;
}

.signin-modal input[type="text"],
.signin-modal input[type="password"] {
  position: relative;
  font-size: 1.8rem;
  color: #2A2934;
  padding: 0.5em;
  border: 1px solid #414141;
  border-radius: 4px;
  -webkit-appearance: none;
}

.signin-modal__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background-color: #38457E;
  border: 0;
  font-size: 2rem;

  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column nowrap;
}

.signin-modal__close .fa-times {
  line-height: inherit;
}

.signin-modal__close:hover { background-color: #5BC8AF; }

.signin-modal .login-error {
  margin-bottom: 15px;
  padding: 5px 10px;
  background: #FDECEA;
  border-left: 4px solid #c0392b;
}

body.signin-modal-open { overflow: hidden; }

#signin-modal input[type="text"],
#signin-modal input[type="password"],
#signin-modal input[type="submit"] { width: 100%; }
