/* Sign in (/sign-in/, templates/luke/login.php). Classes luke-login-.
   Mobile: the form, then "New to Revive?" with the photo below. From 768: "New to Revive?" (301px, photo above) left of the form (634px) */

.luke-login-page { /* not .luke-login: that is the body class */
  padding: 24px 0 calc(var(--section) * 2);
}
.luke-login-in {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  max-width: calc(390px + var(--gutter) * 2);
}

/* Form */
.luke-login-card {
  background: var(--c-white);
  border-radius: 24px;
  box-shadow: 0 4px 11px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  width: 100%;
}
.luke-login-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 28px;
}
.luke-login-text {
  font-size: 14px;
  line-height: 20px;
  margin-top: 12px;
}
.luke-login-notices:not(:empty) {
  margin-top: 16px;
}
.luke-login-notices ul,
.luke-login-notices .woocommerce-error,
.luke-login-notices .woocommerce-message,
.luke-login-notices .woocommerce-info {
  background: #FEE9EE;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
}
.luke-login-notices .woocommerce-message,
.luke-login-notices .woocommerce-info {
  background: #F2F8E4;
}
.luke-login-notices li + li {
  margin-top: 4px;
}
.luke-login-notices a {
  text-decoration: underline;
}
.luke-login-notices a[href*="lost-password"],
.luke-login-notices a[href*="lostpassword"] { /* "Lost your password?" of WordPress: no password reset, sign in without password */
  display: none;
}
.luke-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.luke-login-form.loading {
  opacity: .6;
  pointer-events: none;
}
.luke-login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.luke-login-input {
  -webkit-appearance: none;
  appearance: none;
  background: var(--c-white);
  border: 1px solid var(--c-beige1);
  border-radius: 50px;
  color: var(--c-dark);
  font: inherit;
  font-size: 14px;
  height: 40px;
  line-height: 20px;
  padding: 0 16px;
  transition: border-color .2s;
  width: 100%;
}
.luke-login-input::placeholder {
  color: var(--c-gray);
  opacity: 1;
}
.luke-login-input:focus {
  border-color: var(--c-dark);
  outline: none;
}
.luke-login-input.error {
  border-color: var(--c-red);
}
.luke-login-pass {
  position: relative;
}
.luke-login-pass .luke-login-input {
  padding-right: 48px;
}
.luke-login-eye {
  color: var(--c-dark);
  display: flex;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.luke-login-eye .luke-icon {
  height: 20px;
  width: 20px;
}
.luke-login-eye .luke-eye-on,
.luke-login-eye.on .luke-eye-off { /* the closed eye while the password is hidden */
  display: none;
}
.luke-login-eye.on .luke-eye-on {
  display: block;
}
.luke-login-form.magic .luke-login-pass {
  display: none;
}
.luke-login-go {
  height: 40px;
  padding-bottom: 0;
  padding-top: 0;
  width: 100%;
}
.luke-login-go:disabled {
  background: #96A09C;
  border-color: #96A09C;
  color: #E1E5E4;
  cursor: default;
}
.luke-login-magic {
  align-self: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
}
.luke-login-magic:hover {
  text-decoration: none;
}

/* New to Revive? */
.luke-login-new {
  background: var(--c-white);
  border: 5px solid #D3E3A3;
  border-radius: 24px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  width: 100%;
}
.luke-login-new-photo img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.luke-login-new-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  text-align: center;
}
.luke-login-new-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 22px;
}
.luke-login-new-text p {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.luke-login-new-text .lbtn {
  align-self: center;
  height: 40px;
  max-width: 350px;
  padding-bottom: 0;
  padding-top: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .luke-login-page {
    padding-top: 40px;
  }
  .luke-login-in {
    align-items: center;
    flex-direction: row-reverse;
    gap: 40px;
    justify-content: center;
    max-width: none;
  }
  .luke-login-card {
    border-radius: 40px;
    flex: 0 1 634px;
    padding: 40px;
  }
  .luke-login-title {
    font-size: 40px;
    line-height: 40px;
  }
  .luke-login-text {
    font-size: 16px;
    line-height: 22px;
    margin-top: 16px;
  }
  .luke-login-notices:not(:empty),
  .luke-login-form {
    margin-top: 24px;
  }
  .luke-login-form {
    gap: 24px;
  }
  .luke-login-fields {
    gap: 16px;
  }
  .luke-login-input {
    font-size: 18px;
    height: 56px;
    letter-spacing: -.02em;
    line-height: 24px;
    padding: 0 24px;
  }
  .luke-login-pass .luke-login-input {
    padding-right: 60px;
  }
  .luke-login-eye {
    right: 24px;
  }
  .luke-login-eye .luke-icon {
    height: 24px;
    width: 24px;
  }
  .luke-login-go,
  .luke-login-new-text .lbtn {
    height: 48px;
  }
  .luke-login-magic {
    font-size: 16px;
    line-height: 22px;
  }
  .luke-login-new {
    border-radius: 32px;
    border-width: 10px;
    flex: 0 0 301px;
    flex-direction: column;
  }
  .luke-login-new-text {
    padding: 16px 12px;
    text-align: left;
  }
  .luke-login-new-title {
    font-size: 24px;
    letter-spacing: -.03em;
    line-height: 28px;
  }
  .luke-login-new-text p {
    font-size: 16px;
    line-height: 22px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) { /* the form first, the card under it */
  .luke-login-in {
    align-items: center;
    flex-direction: column;
  }
  .luke-login-card {
    flex-basis: auto;
    max-width: 634px;
  }
  .luke-login-new {
    flex-basis: auto;
    flex-direction: column-reverse;
    max-width: 634px;
    width: 100%;
  }
  .luke-login-new-text {
    text-align: center;
  }
}
