﻿
/*_06changepassword.css*/

/* ── Rules Tooltip ─────────────────────────────────────── */
.rules-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1.5px solid #e0eaff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(26,115,232,0.12);
    z-index: 100;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

    .rules-tooltip.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* Arrow ชี้ขึ้นไปที่ input */
.rules-arrow {
    position: absolute;
    top: -7px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1.5px solid #e0eaff;
    border-top: 1.5px solid #e0eaff;
    transform: rotate(45deg);
}

.rules {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .rules li {
        font-size: 12px;
        color: #94a3b8;
        padding-left: 20px;
        position: relative;
        transition: color .2s;
    }

        .rules li::before {
            content: '\25CB';
            position: absolute;
            left: 0;
            font-size: 10px;
            color: #94a3b8;
            transition: all .2s;
        }

        .rules li.ok {
            color: #059669;
        }

            .rules li.ok::before {
                content: '\2713';
                color: #059669;
            }

/* ── Strength bar ──────────────────────────────────────── */
.strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-bar {
    flex: 1;
    height: 5px;
    background: #dbeafe;
    border-radius: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width .4s, background .4s;
}

.strength-label {
    font-size: 10.5px;
    font-weight: 600;
    min-width: 40px;
}

/* ── Match message ─────────────────────────────────────── */
.match-msg {
    font-size: 11.5px;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

/* ── Info card ─────────────────────────────────────────── */
.info-card-wrap {
    position: relative;
    width: 340px;
    height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}
