/* EC Match Slugs — Account password setup/reset refinement */

body.woocommerce-lost-password .site-main {
  min-height: 0 !important;
  padding-block: clamp(3rem, 5vw, 4.75rem) clamp(3.5rem, 6vw, 5.25rem);
}

body.woocommerce-lost-password .content-layout,
body.woocommerce-lost-password .entry,
body.woocommerce-lost-password .entry-content {
  display: block !important;
  width: 100%;
  max-width: none;
}

body.woocommerce-lost-password .entry-content > .woocommerce,
body.woocommerce-lost-password .woocommerce {
  display: flex !important;
  width: 100%;
  max-width: none !important;
  flex-direction: column;
  align-items: center;
}

body.woocommerce-lost-password .content-layout,
body.woocommerce-lost-password .entry {
  margin-inline: auto;
}

body.woocommerce-lost-password .entry-header,
body.woocommerce-lost-password .entry-content {
  width: min(100%, 680px);
  max-width: 680px;
  margin-inline: auto;
}

body.woocommerce-lost-password .entry-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

body.woocommerce-lost-password .entry-title {
  width: 100%;
  margin: 0 auto;
  color: #111317;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-align: center;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword,
body.woocommerce-lost-password form.lost_reset_password {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1.15rem;
  width: 100% !important;
  max-width: 680px !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid #dedfe2;
  border-left: 5px solid #e31825;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(14, 16, 19, .09);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword > p:first-child,
body.woocommerce-lost-password form.lost_reset_password > p:first-child {
  margin: 0 0 .15rem;
  color: #505861;
  font-size: 1.02rem;
  line-height: 1.65;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .form-row,
body.woocommerce-lost-password form.lost_reset_password .form-row,
body.woocommerce-lost-password form.woocommerce-ResetPassword .form-row-first,
body.woocommerce-lost-password form.woocommerce-ResetPassword .form-row-last,
body.woocommerce-lost-password form.lost_reset_password .form-row-first,
body.woocommerce-lost-password form.lost_reset_password .form-row-last {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword label,
body.woocommerce-lost-password form.lost_reset_password label {
  display: block;
  margin-bottom: .55rem;
  color: #111317;
  font-size: .98rem;
  font-weight: 850;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword input.input-text,
body.woocommerce-lost-password form.lost_reset_password input.input-text,
body.woocommerce-lost-password form.woocommerce-ResetPassword input[type="password"],
body.woocommerce-lost-password form.lost_reset_password input[type="password"],
body.woocommerce-lost-password form.lost_reset_password input[type="text"],
body.woocommerce-lost-password form.lost_reset_password input[type="email"] {
  width: 100% !important;
  min-height: 60px;
  box-sizing: border-box;
  padding: .9rem 3.3rem .9rem 1rem;
  border: 1px solid #cfd3d8;
  border-radius: 12px;
  background: #fff;
  color: #111317;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.woocommerce-lost-password form.lost_reset_password input[type="text"],
body.woocommerce-lost-password form.lost_reset_password input[type="email"] {
  padding-right: 1rem;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword input:focus,
body.woocommerce-lost-password form.lost_reset_password input:focus {
  border-color: #e31825;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(227, 24, 37, .11);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword input[aria-invalid="true"],
body.woocommerce-lost-password form.lost_reset_password input[aria-invalid="true"] {
  border-color: #c9202f;
  background: #fff9fa;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .password-input,
body.woocommerce-lost-password form.lost_reset_password .password-input {
  position: relative;
  display: block;
  width: 100%;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .show-password-input,
body.woocommerce-lost-password form.lost_reset_password .show-password-input {
  top: 50% !important;
  right: .35rem !important;
  display: grid !important;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 !important;
  transform: translateY(-50%);
  cursor: pointer;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .show-password-input::after,
body.woocommerce-lost-password form.lost_reset_password .show-password-input::after {
  font-size: 1.18rem;
}

body.woocommerce-lost-password .ecms-password-guidance {
  margin: -.15rem 0 .1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #f5f6f7;
  color: #5e646b;
  font-size: .92rem;
  line-height: 1.55;
}

body.woocommerce-lost-password .woocommerce-password-strength {
  margin-top: .55rem;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 800;
}

body.woocommerce-lost-password .woocommerce-password-strength.short,
body.woocommerce-lost-password .woocommerce-password-strength.bad {
  background: #fff0f1;
  color: #a71722;
}

body.woocommerce-lost-password .woocommerce-password-strength.good {
  background: #fff8e6;
  color: #73530b;
}

body.woocommerce-lost-password .woocommerce-password-strength.strong {
  background: #edf8f1;
  color: #176a39;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword button.button,
body.woocommerce-lost-password form.lost_reset_password button.button,
body.woocommerce-lost-password form.woocommerce-ResetPassword input[type="submit"],
body.woocommerce-lost-password form.lost_reset_password input[type="submit"] {
  width: 100% !important;
  min-height: 56px;
  justify-self: stretch;
  margin-top: .25rem;
  padding: .9rem 1.4rem;
  border: 1px solid #e31825;
  border-radius: 999px;
  background: #e31825;
  color: #fff;
  font-size: .98rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 30px rgba(227, 24, 37, .2);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword button.button:hover,
body.woocommerce-lost-password form.lost_reset_password button.button:hover,
body.woocommerce-lost-password form.woocommerce-ResetPassword input[type="submit"]:hover,
body.woocommerce-lost-password form.lost_reset_password input[type="submit"]:hover {
  border-color: #b90f19;
  background: #b90f19;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(227, 24, 37, .26);
}

body.woocommerce-lost-password .woocommerce-notices-wrapper,
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-info {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 680px !important;
  box-sizing: border-box;
  margin: 0 auto 1rem !important;
}

body.woocommerce-lost-password .woocommerce-notices-wrapper:empty {
  display: none !important;
}

body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-info {
  position: relative;
  display: block !important;
  padding: 1rem 1.15rem 1rem 3rem !important;
  border-radius: 14px;
  line-height: 1.55;
}

body.woocommerce-lost-password .woocommerce-error::before,
body.woocommerce-lost-password .woocommerce-message::before,
body.woocommerce-lost-password .woocommerce-info::before {
  left: 1.05rem !important;
}

body.woocommerce-lost-password .woocommerce-message {
  border-left-color: #1f8a4d;
  background: #f3fbf6;
}

body.woocommerce-lost-password .woocommerce-error {
  border-left-color: #c9202f;
  background: #fff8f9;
}

body.woocommerce-lost-password.ecms-password-flow--recovery form.lost_reset_password {
  gap: 1.25rem;
}

@media (max-width: 767px) {
  body.woocommerce-lost-password .site-main {
    padding-block: 2.25rem 3.25rem;
  }

  body.woocommerce-lost-password .entry-header,
  body.woocommerce-lost-password .entry-content,
  body.woocommerce-lost-password .woocommerce-notices-wrapper,
  body.woocommerce-lost-password .woocommerce-error,
  body.woocommerce-lost-password .woocommerce-message,
  body.woocommerce-lost-password .woocommerce-info {
    width: 100% !important;
  }

  body.woocommerce-lost-password .entry-header {
    margin-bottom: 1.5rem;
  }

  body.woocommerce-lost-password .entry-title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  body.woocommerce-lost-password form.woocommerce-ResetPassword,
  body.woocommerce-lost-password form.lost_reset_password {
    padding: 1.3rem;
    border-radius: 16px;
  }

  body.woocommerce-lost-password form.woocommerce-ResetPassword input.input-text,
  body.woocommerce-lost-password form.lost_reset_password input.input-text,
  body.woocommerce-lost-password form.woocommerce-ResetPassword input[type="password"],
  body.woocommerce-lost-password form.lost_reset_password input[type="password"] {
    min-height: 56px;
  }
}
