/* ============ Password Strength Checker ============ */

.ps-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.ps-input {
    padding-right: 48px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.5px;
}
.ps-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #5f6368;
    border-radius: 4px;
}
.ps-toggle-btn:hover { background: #f1f3f4; color: #1a73e8; }

.ps-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #5f6368;
    margin-bottom: 18px;
    cursor: pointer;
}

.ps-checkbox-hint {
    margin: -10px 0 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #5f6368;
}

.ps-meter {
    margin: 18px 0 14px;
}
.ps-meter-bar {
    height: 10px;
    background: #e8eaed;
    border-radius: 5px;
    overflow: hidden;
}
.ps-meter-fill {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.25s ease, background 0.25s ease;
}
.ps-meter-fill[data-level="0"] { background: #d93025; width: 10%; }
.ps-meter-fill[data-level="1"] { background: #ea8600; width: 30%; }
.ps-meter-fill[data-level="2"] { background: #f9ab00; width: 55%; }
.ps-meter-fill[data-level="3"] { background: #1e8e3e; width: 80%; }
.ps-meter-fill[data-level="4"] { background: #0d652d; width: 100%; }

.ps-meter-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
}

.ps-feedback {
    margin: 16px 0 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
}
.ps-feedback:empty { display: none; }
.ps-feedback strong { color: #202124; }

#psChecklistTitle {
    margin: 0 0 6px;
}

.ps-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    font-size: 13.5px;
}
.ps-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
}
.ps-checklist li::before {
    content: "○";
    color: #dadce0;
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.ps-checklist li[data-pass="true"]::before {
    content: "✓";
    color: #1e8e3e;
    font-weight: 700;
}
.ps-checklist li[data-pass="false"]::before {
    content: "✗";
    color: #d93025;
    font-weight: 700;
}

@media (max-width: 600px) {
    .ps-checklist { grid-template-columns: 1fr; }
}
