/* ==========================================================================
   Password reset pages (request link + choose new password)
   Builds on login.css (.login-modern, .lm-card, .lm-field, .lm-input,
   .lm-submit, .lm-alert). Only the pieces specific to these pages live here.
   Everything is scoped under .login-modern so nothing leaks into the site.
   Markup: .login-modern > .login-modern__shell.pw-reset > .lm-card
   ========================================================================== */

.login-modern .login-modern__shell.pw-reset {
  max-width: 560px;
  padding-top: 40px;
}

/* login.css styles `.lm-field label` but has no required-star or hint styles */
.login-modern .pw-reset .lm-field label .req {
  color: #ef4444;
  margin-left: 3px;
}

/* Small helper text under a field */
.login-modern .pw-hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--lm-muted);
}

/* Which account is being changed (shown instead of asking for the email again) */
.login-modern .pw-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px solid var(--lm-border);
  border-radius: 10px;
}

.login-modern .pw-account__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--lm-orange-hover);
  background: rgba(245, 130, 32, .12);
}

.login-modern .pw-account__text {
  min-width: 0;
}

.login-modern .pw-account__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lm-muted);
  margin-bottom: 2px;
}

.login-modern .pw-account__email {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--lm-navy);
  word-break: break-all;
}

/* Secondary links under the card's main button */
.login-modern .pw-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lm-border);
  text-align: center;
  font-size: 14px;
  color: var(--lm-muted);
  line-height: 1.8;
}

.login-modern .pw-links a {
  color: var(--lm-orange-hover);
  font-weight: 600;
  text-decoration: none;
}

.login-modern .pw-links a:hover {
  text-decoration: underline;
}

/* Success message may carry a second, quieter line */
.login-modern .lm-alert .pw-alert-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  opacity: .85;
}

@media (max-width: 600px) {
  .login-modern .login-modern__shell.pw-reset {
    padding-top: 22px;
  }
  .login-modern .pw-reset .lm-login-head h1 {
    font-size: 22px;
  }
}
