/* Login UI loaded only on pages containing [custom_login_form]. */
.user-login-page,
.user-login-page * {
  box-sizing: border-box;
}

.user-login-page {
  width: min(100%, 460px);
  margin: 1.25rem auto 3.5rem;
  padding: 0 1rem;
  color: #342b25;
}

.login-container {
  width: 100%;
  padding: clamp(1.2rem, 4vw, 1.75rem);
  border: 1px solid #e9dfd5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(87, 57, 35, .08);
}

.login-eyebrow {
  margin: 0 0 .35rem;
  color: #a04435;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.login-page-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #2f2823;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1.35;
  text-align: center;
}

.login-intro,
.login-message {
  margin: .6rem 0 1.25rem;
  color: #6d6259;
  font-size: .9rem;
  line-height: 1.7;
  text-align: center;
}

.login-error {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid #f0b7b7;
  border-radius: 10px;
  background: #fff4f4;
  color: #9c2929;
  font-size: .875rem;
  line-height: 1.6;
}

.my-login-form {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.login-field label {
  display: block;
  margin: 0 0 .4rem;
  color: #413832;
  font-size: .875rem;
  font-weight: 750;
}

.login-field input[type="text"],
.login-field input[type="password"] {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: .72rem .85rem;
  border: 1.5px solid #d8cec5;
  border-radius: 11px;
  background: #fffdfb;
  color: #2f2823;
  font: inherit;
  font-size: 16px;
}

.login-field input:focus {
  border-color: #b64b3a;
  outline: 3px solid rgba(182, 75, 58, .16);
  outline-offset: 1px;
}

.login-remember label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .55rem;
  color: #5f554e;
  font-size: .875rem;
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #b64b3a;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: .78rem 1rem;
  border: 0;
  border-radius: 12px;
  background: #a83f30;
  box-shadow: 0 5px 14px rgba(168, 63, 48, .2);
  color: #fff !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none !important;
  cursor: pointer;
  touch-action: manipulation;
}

.login-button:hover {
  background: #8f3327;
}

.login-button:focus-visible,
.login-support-links a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .36);
  outline-offset: 3px;
}

.login-support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .55rem;
  margin: 1.1rem 0 0;
  color: #9a8c82;
  font-size: .85rem;
  line-height: 1.6;
}

.login-support-links a {
  color: #765247;
  font-weight: 700;
}

.user-login-page--signed-in .login-container {
  padding-block: 1.6rem;
}

@media (max-width: 599px) {
  .user-login-page {
    margin-top: .75rem;
    padding-inline: .625rem;
  }

  .login-container {
    padding: 1.15rem .9rem;
    border-radius: 14px;
  }

  .login-support-links {
    align-items: center;
    flex-direction: column;
  }

  .login-support-links span {
    display: none;
  }

  .login-support-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }
}

/* SWELL can preserve a desktop-sized header spacer only on the login Page. */
@media (max-width: 720px) {
  body.hrp-login-page :where(#header,.l-header,.l-header__inner,.l-header__body) {
    min-height: 0 !important;
    height: auto !important;
  }
  body.hrp-login-page :where(.l-header__inner,.l-header__body) {
    padding-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-login-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
