/**
 * pqpasswordhint - front.css
 * Password rules checklist with Bootstrap 5 color palette.
 */

.pqph {
    margin-top: 0.5rem;
    font-family: inherit;
    color: #212529;
}

/* ===== Rules checklist ===== */

.pqph__rules {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pqph__rule {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.pqph__rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1.5px solid #ced4da;
    background-color: #fff;
    border-radius: 50%;
    color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pqph__rule-icon svg {
    width: 10px;
    height: 10px;
    display: block;
}

.pqph__rule--met {
    color: #198754;
}

.pqph__rule--met .pqph__rule-icon {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

/* ===== Confirmation match indicator ===== */

.pqph-match {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 1.25em;
    line-height: 1.4;
}
.pqph-match--ok  { color: #198754; }
.pqph-match--ko  { color: #dc3545; }

.pqph-match__icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.pqph-match__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Flash animation when submit is blocked by invalid password ===== */

.pqph--flash {
    animation: pqphFlash 0.6s ease;
}

@keyframes pqphFlash {
    0%   { background-color: transparent; }
    30%  { background-color: #f8d7da; }
    100% { background-color: transparent; }
}
