/* Password recovery and reset share one layout and explicit button colors. */
.tarab-lost-password-shell {
  min-height: min(720px, calc(100vh - 190px));
  align-items: center;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.tarab-lost-password-card,
.tarab-reset-password-card {
  width: min(100%, 680px);
  max-width: 680px;
  min-width: 0;
  margin-inline: auto;
}
.tarab-lost-password-card h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tarab-lost-password-form { margin-top: 24px; }
.tarab-reset-password-form { margin-top: 26px; }
.tarab-lost-password-card--success p:not(.tarab-eyebrow),
.tarab-reset-password-card p:not(.tarab-eyebrow) { max-width: 58ch; }
.tarab-reset-password-form .tarab-password-field + .tarab-password-field { margin-top: 6px; }
.tarab-lost-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.tarab-lost-password-actions--stacked { margin-top: 28px; }
.tarab-reset-password-actions { margin-top: 10px; }

/* These selectors must outrank the general account ghost-button selector,
   whose white text and transparent background made the light-mode submit blank. */
body.woocommerce-account .tarab-lost-password-card .tarab-lost-password-actions .button,
body.woocommerce-account .tarab-lost-password-card .tarab-lost-password-actions .tarab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  background: var(--text);
  color: var(--inverse);
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}
body.woocommerce-account .tarab-lost-password-card .tarab-lost-password-actions .tarab-button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
body.woocommerce-account .tarab-lost-password-card .tarab-lost-password-actions :is(.button, .tarab-button):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.tarab-reset-password-shell .woocommerce-password-strength,
.tarab-reset-password-shell .woocommerce-password-hint { color: var(--text-soft); }
.tarab-reset-password-shell .woocommerce-password-strength {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: 12px;
  line-height: 1.45;
}
.tarab-reset-password-shell .woocommerce-password-strength.bad,
.tarab-reset-password-shell .woocommerce-password-strength.short {
  color: #b42318;
  border-color: rgba(180,35,24,.28);
  background: rgba(180,35,24,.08);
}
.tarab-reset-password-shell .woocommerce-password-strength.good {
  color: #9a6700;
  border-color: rgba(154,103,0,.28);
  background: rgba(154,103,0,.08);
}
.tarab-reset-password-shell .woocommerce-password-strength.strong {
  color: #067647;
  border-color: rgba(6,118,71,.28);
  background: rgba(6,118,71,.08);
}
.tarab-reset-password-shell .woocommerce-password-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .tarab-lost-password-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}
