/* Password strength inline panel */
.pwd-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
    margin-top: 0;
    margin-bottom: 10px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(17,17,26,.09);
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}

.pwd-panel--open {
    max-height: 280px;
    opacity: 1;
    padding: 13px 14px;
}

.pwd-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

.pwd-segs {
    display: flex;
    gap: 5px;
    flex: 1;
}

.pwd-seg {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    transition: background .3s;
}

.pwd-level {
    font-size: .76rem;
    font-weight: 700;
    min-width: 76px;
    text-align: right;
    white-space: nowrap;
    transition: color .3s;
    letter-spacing: .2px;
}

.pwd-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 18px;
}

@media (max-width: 500px) {
    .pwd-rules { grid-template-columns: 1fr; }
}

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .79rem;
    color: #9ca3af;
    transition: color .2s;
    user-select: none;
}

.pwd-icon-fail,
.pwd-icon-ok {
    font-size: .82rem;
    flex-shrink: 0;
}

.pwd-icon-ok   { display: none;         color: #22c55e; }
.pwd-icon-fail { display: inline-block; color: #d1d5db; }

.pwd-rule--ok                { color: #374151; }
.pwd-rule--ok .pwd-icon-fail { display: none; }
.pwd-rule--ok .pwd-icon-ok   { display: inline-block; }
