/* =========================
   ScanWin — forgot-password.css
   -------------------------
   Page-specific styles for the forgot-password flow:
     1. forgot-password.html   — Enter email
     2. check-email.html       — Confirmation screen
     3. reset-password.html    — Create new password
     4. password-updated.html  — Success screen
   The form-panel chrome (sw-showcase, sw-form-panel, sw-form-narrow,
   sw-form-heading, sw-input-group, sw-btn-submit, sw-legal) is reused
   from login.css — link login.css first, then this file.
========================= */


/* =========================
   Centered heading variant Start
   Used by screens 2 (Check email) and 4 (Password updated)
========================= */
.sw-form-heading--center {
  text-align: center;
}

.sw-form-heading--center h1,
.sw-form-heading--center p {
  margin-left: auto;
  margin-right: auto;
}
/* =========================
   Centered heading variant End
========================= */


/* =========================
   Icon Block Start
   96x96 rounded tinted tile that wraps a single illustrative
   icon (mail, check). One block per "result" screen.
========================= */
.sw-icon-block {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sw-icon-block svg {
  display: block;
}

.sw-icon-block--violet {
  background: #eeedfe;
  color: var(--sw-violet);
}

.sw-icon-block--success {
  background: #d1fae5;
  color: #059669;
}
/* =========================
   Icon Block End
========================= */


/* =========================
   Password Requirements List Start
   Live-checked rules under the new-password input on
   reset-password.html. Each row toggles .is-met when the
   rule is satisfied (handled in forgot-password.js).
========================= */
.sw-pw-requirements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sw-pw-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  line-height: 16px;
  transition: color 0.15s;
}

.sw-pw-req__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #d1d5db;
  transition: color 0.15s;
}

.sw-pw-req.is-met {
  color: var(--sw-text);
}

.sw-pw-req.is-met .sw-pw-req__icon {
  color: #10b981;
}
/* =========================
   Password Requirements List End
========================= */


/* =========================
   Secondary Auth Links Start
   "← Back to sign in" centered link, plus the inline
   "Didn't receive it? · Resend email" row on screen 2.
========================= */
.sw-back-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
  text-decoration: none;
}

.sw-back-link:hover {
  color: var(--sw-violet-600);
}

.sw-inline-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  line-height: 16px;
}

.sw-inline-link__muted {
  color: var(--sw-text-muted);
  font-weight: 400;
}

.sw-inline-link__action {
  color: var(--sw-violet);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sw-inline-link__action:hover {
  color: var(--sw-violet-600);
}
/* =========================
   Secondary Auth Links End
========================= */


/* =========================
   Success Micro-interaction Start
   Scoped to .sw-success-block on password-updated.html. Single,
   gentle entrance on the success icon — a 6% scale-up + fade in
   over 0.4s. No bounce, no rings, no staggers. Gated on
   prefers-reduced-motion.
========================= */
@media (prefers-reduced-motion: no-preference) {
  .sw-success-block .sw-icon-block {
    animation: sw-icon-soft-in 0.4s ease-out both;
  }

  @keyframes sw-icon-soft-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
  }
}
/* =========================
   Success Micro-interaction End
========================= */


/* =========================
   Forgot-Password Responsive Start
   Mobile spec: 350px content column, 32px heading,
   centered brand wordmark in flow.
========================= */
@media (max-width: 991.98px) {
  .sw-form-heading--center h1,
  .sw-form-heading--center p {
    max-width: 100%;
  }

  .sw-icon-block {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
}

@media (max-width: 575.98px) {
  .sw-pw-req {
    font-size: 12px;
  }
}
/* =========================
   Forgot-Password Responsive End
========================= */
