/**
 * NFA Secure Auth Flow — CSS
 * File: assets/css/nfa-auth-flow.css
 * Extends assets/css/funder.css (login/register card, inputs, error/success
 * states, server messages) — this file only adds what's genuinely new:
 * the Forgot Password link and the live password-strength meter.
 */

/* ── Forgot Password link on login page ── */
.funder-login-form__forgot {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #1a3a6b;
    text-decoration: none;
    font-weight: 600;
}

.funder-login-form__forgot:hover {
    text-decoration: underline;
}

/* ── Password strength meter ── */
.nfa-pw-meter {
    margin-top: 8px;
}

.nfa-pw-meter__bar {
    width: 100%;
    height: 6px;
    background: #e9edf3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.nfa-pw-meter__bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.25s ease, background-color 0.25s ease;
    background: #d0d5dd;
}

.nfa-pw-meter__bar span.weak {
    background: #e2413a;
}

.nfa-pw-meter__bar span.medium {
    background: #e6a417;
}

.nfa-pw-meter__bar span.strong {
    background: #2e9d5c;
}

.nfa-pw-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.nfa-pw-rules li {
    font-size: 12px;
    color: #8a8f98;
    position: relative;
    padding-left: 18px;
}

.nfa-pw-rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d5dd;
}

.nfa-pw-rules li.is-ok {
    color: #2e9d5c;
}

.nfa-pw-rules li.is-ok::before {
    background: #2e9d5c;
}

.nfa-pw-rules li.is-bad {
    color: #e2413a;
}

.nfa-pw-rules li.is-bad::before {
    background: #e2413a;
}

/* ── Auth page tweaks ── */
.nfa-auth-page .funder-login-card__subtitle {
    margin-bottom: 20px;
}

.nfa-auth-form .funder-login-form__eye {
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .nfa-pw-rules {
        grid-template-columns: 1fr;
    }
}
