/* =====================
   LOGIN VIEW
   ===================== */

.login-form-wrapper {
  width: 100%;
  max-width: 460px;
  padding: 0 15px;
}

.login-form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

/* Floating label field wrapper for login inputs */
.login-field {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0;
}

.custom-form .login-field .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1.2rem 20px 0.4rem;
}

.custom-form .login-field .form-control::-moz-placeholder { color: transparent; opacity: 0; }
.custom-form .login-field .form-control::placeholder { color: transparent; opacity: 0; }

.custom-form .login-field .form-control:not(:-moz-placeholder-shown),
.custom-form .login-field .form-control:focus,
.custom-form .login-field .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.login-field label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 20px;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: var(--p-color);
  font-size: 1rem;
  margin-top: 0;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-form .login-field .form-control:focus ~ label,
.custom-form .login-field .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.1rem);
}

.login-submit-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-submit-col {
  width: 100%;
  max-width: 240px;
}

/* Match old Bootstrap col-lg-5 width at each container breakpoint:
 * col-5 width = 5/12 * container_max_width
 * Wrapper max-width = col-5 content (col-5 - 24px gutter) + 30px wrapper padding */
@media (min-width: 1200px) { .login-form-wrapper { max-width: 481px; } }
@media (min-width: 1400px) { .login-form-wrapper { max-width: 556px; } }

@media (max-width: 991px) {
  .login-form-wrapper {
    max-width: 100%;
  }

  .login-submit-col {
    max-width: 100%;
  }
}
