/*
 * BGW Form Guard — inline validation feedback for the signup + checkout forms.
 * Paper & Ink palette; uses the site tokens (--accent, --muted) with a success
 * green + warning amber added locally. Loaded on PMPro signup + EDD checkout.
 */

.bgw-fg{margin:6px 0 2px;line-height:1.4}
.bgw-fg .bgw-fg-msg{
	display:inline-block;font-family:'Inter',-apple-system,sans-serif;font-weight:500;
	font-size:12px;letter-spacing:.01em}
/* hidden until there is something to say */
.bgw-fg:not(.is-shown) .bgw-fg-msg{display:none}
.bgw-fg.bgw-fg--neutral:not(.is-shown){margin:0}

/* status colours */
.bgw-fg--ok      .bgw-fg-msg{color:#2e7d52}
.bgw-fg--error   .bgw-fg-msg{color:var(--accent,#9b2f2c)}
.bgw-fg--warn    .bgw-fg-msg{color:#b8741c}
.bgw-fg--pending .bgw-fg-msg{color:var(--muted,#8a8178)}

/* leading glyphs */
.bgw-fg--ok    .bgw-fg-msg::before{content:"\2713\00a0";font-weight:700}
.bgw-fg--error .bgw-fg-msg::before{content:"\2715\00a0";font-weight:700}
.bgw-fg--warn  .bgw-fg-msg::before{content:"\26A0\00a0"}

/* password strength bar */
.bgw-fg-strength{position:relative;height:5px;border-radius:4px;background:rgba(26,23,20,.10);margin:8px 0 6px;overflow:hidden}
.bgw-fg-strength i{display:block;height:100%;width:0;border-radius:4px;transition:width .25s ease,background .25s ease}
.bgw-fg-strength[data-score="-1"] i{width:0}
.bgw-fg-strength[data-score="0"]  i{width:20%;background:#c0392b}
.bgw-fg-strength[data-score="1"]  i{width:40%;background:#d68a2e}
.bgw-fg-strength[data-score="2"]  i{width:62%;background:#caa23a}
.bgw-fg-strength[data-score="3"]  i{width:82%;background:#5a9a6a}
.bgw-fg-strength[data-score="4"]  i{width:100%;background:#2e7d52}
/* if a password field has no strength data yet, keep the track invisible */
.bgw-fg-strength:not([data-score]),
.bgw-fg-strength[data-score="-1"]{background:transparent}

/* submit button blocked while a hard error is showing */
.bgw-fg-blocked{opacity:.45!important;cursor:not-allowed!important;filter:grayscale(.15)}
