@import '../../../../../src/scss/variables';

.login {
  min-height: 100vh;
}

.bg-image {
  background-image: linear-gradient(to right, rgba(theme-color('primary'), 0.2), rgba(theme-color('secondary'), 0.2)), url('/assets/img/login-bg.jpeg');
  background-size: cover;
  background-position: center;
}

.login-heading {
  img {
    width: 90%;
  }
}

.btn-login {
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
}

#login-form {
  z-index: 1000;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
  padding: 8px 20px 8px 20px;
  height: auto;
  border-radius: 2rem;
}

.form-label-group > label {
  position: absolute;
  top: 2px;
  left: 10px;
  display: block;
  width: 100%;
  margin-bottom: 0;
  /* Override default `<label>` margin */
  line-height: 1.5;
  color: #495057;
  cursor: text;
  /* Match the input under the label */
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
}


  /* Ensure the login wrapper maintains height */
  .login-wrapper {
    position: relative;
    min-height: 450px;
  }
  
  /* Overlay spinner when loading */
  .loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
  }
  
  /* Prevent movement of logo */
  #login-logo {
    max-width: 400px;
  }

    /* Input fields style, including eye button */
  .form-label-group {
    .form-control {
      border-radius: 1rem !important;
      padding: 0.5rem 1.25rem;
      height: calc(2.5rem + 2px);
      transition: all 0.2s ease;
      
      &:focus {
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
      }
    }
  
    .input-group {
      .form-control {
        border-radius: 1rem 0 0 1rem !important;
        border-right: none;
        padding-right: 2.5rem;
      }
  
      .input-group-append {
        margin-left: -1px;
        z-index: 5;
  
        .btn {
          border-radius: 0 1rem 1rem 0 !important;
          border-left: none;
          height: calc(2.5rem + 2px);
          padding: 0 1rem;
          display: flex;
          align-items: center;
          justify-content: center;
          border-color: #ced4da !important;
          i {
            font-size: 1.1rem;
            width: 1.25em;
          }
        }
      }
    }
  
    &:first-child .form-control {
      padding: 0.5rem 1.25rem;
    }
  }



/* Fallback for Edge
-------------------------------------------------- */

@supports (-ms-ime-align: auto) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input::-ms-input-placeholder {
    color: #777;
  }
}

/* Fallback for IE
-------------------------------------------------- */

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input:-ms-input-placeholder {
    color: #777;
  }
}

@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
  
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
  
}

  @keyframes shake {
    from,
    to {
      transform: translate3d(0, 0, 0);
    }
  
    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translate3d(-10px, 0, 0);
    }
  
    20%,
    40%,
    60%,
    80% {
      transform: translate3d(10px, 0, 0);
    }
  }
  
  .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
  }
  
  .shake {
    animation-name: shake;
  }
  
  @-webkit-keyframes ld {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }
  @-moz-keyframes ld {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }
  @-o-keyframes ld {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }
  @keyframes ld {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }