/* OPD Account Security Module - Lost Password page UI polish */

.asm-lostpw {
  max-width: 640px;
  margin: 0 auto;
}

.asm-lostpw__card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,.08);
}

.asm-lostpw__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.asm-lostpw__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}

.asm-lostpw__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.asm-lostpw__subtitle {
  margin: 2px 0 0 0;
  color: rgba(0,0,0,.65);
}

.asm-lostpw .woocommerce-form-row {
  margin-bottom: 12px;
}

.asm-lostpw label {
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
}

.asm-lostpw input[type="text"],
.asm-lostpw input[type="email"],
.asm-lostpw input[type="password"] {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 0 14px;
  box-shadow: none;
}

.asm-lostpw input:focus {
  outline: none;
  border-color: rgba(0,0,0,.55);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

.asm-lostpw .woocommerce-Button,
.asm-lostpw button[type="submit"],
.asm-lostpw input[type="submit"] {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

/* Gold button (match OPD track button vibe) */
.asm-lostpw .woocommerce-Button,
.asm-lostpw button[type="submit"],
.asm-lostpw input[type="submit"] {
  background: #C8A241;
  color: #111;
}

.asm-lostpw .woocommerce-Button:hover,
.asm-lostpw button[type="submit"]:hover,
.asm-lostpw input[type="submit"]:hover {
  filter: brightness(0.95);
}

.asm-lostpw__links {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.asm-lostpw__links a {
  text-decoration: none;
  font-weight: 700;
}

.asm-lostpw__note {
  margin-top: 10px;
  color: #198754;
}

.asm-lostpw__note-lock {
  margin-right: 6px;
  color: #198754;
}

@media (max-width: 600px) {
  .asm-lostpw__card {
    padding: 16px;
  }
  .asm-lostpw .woocommerce-Button,
  .asm-lostpw button[type="submit"],
  .asm-lostpw input[type="submit"] {
    width: 100%;
  }
}


/* Force OPD gold button for Reset password (match site buttons) */
.woocommerce-account .asm-lostpw input[type="submit"],
.woocommerce-account .asm-lostpw button[type="submit"],
.woocommerce-account .asm-lostpw .woocommerce-Button {
  background: #C49A34 !important;
  color: #111 !important;
  border: 0 !important;
}

.woocommerce-account .asm-lostpw input[type="submit"]:hover,
.woocommerce-account .asm-lostpw button[type="submit"]:hover,
.woocommerce-account .asm-lostpw .woocommerce-Button:hover {
  filter: brightness(0.95);
}


/* Make Woo lost-password error notices fully red (text + icon) */
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error,
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error li,
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error a {
  color: #b00020 !important;
}

.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error {
  border-top-color: #b00020 !important;
}

.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error::before,
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-error li::before {
  color: #b00020 !important;
}

/* Make Woo lost-password success notice fully green (text + icon) */
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message,
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message a {
  color: #198754 !important;
}

.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message {
  border-top-color: #198754 !important;
}

.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message::before {
  color: #198754 !important;
}

/* If Woo prints the follow-up success text as paragraph(s) right after the green notice, polish it */
.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message + p {
  color: rgba(0,0,0,.70);
  max-width: 640px;
  margin: 12px auto 0;
}

.asm-lostpw-page .woocommerce-notices-wrapper .woocommerce-message + p + p {
  color: rgba(0,0,0,.70);
  max-width: 640px;
  margin: 10px auto 0;
}


/* v0.2.0 – Force Reset button below input (theme-safe) */
.asm-lostpw form.lost_reset_password p.form-row-first,
.asm-lostpw form.lost_reset_password p.form-row,
.asm-lostpw form.lost_reset_password .woocommerce-form-row{
  float:none !important;
  width:100% !important;
  display:block !important;
}

.asm-lostpw form.lost_reset_password input[type="text"],
.asm-lostpw form.lost_reset_password input[type="email"]{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
}

.asm-lostpw form.lost_reset_password button[type="submit"],
.asm-lostpw form.lost_reset_password input[type="submit"],
.asm-lostpw form.lost_reset_password .woocommerce-Button{
  width:100% !important;
  display:block !important;
  margin-top:12px;
}
