/* ============================================================
   password_rules.css — เช็คลิสต์กติการหัสผ่าน (ใช้ร่วมกัน register.php + reset_password.php)
   สีจากพาเลต CLAUDE.md: เทา #6B6B6B (ยังไม่ครบ) / Success #2E7D32 (ผ่าน) / Danger #E74C3C (พิมพ์แล้วยังไม่ผ่าน)
   ============================================================ */
.pw-rules {
    list-style: none;
    margin: -6px 0 16px;
    padding: 12px 14px;
    background: #F4F1EB;
    border-radius: 12px;
    text-align: left;
    display: grid;
    gap: 6px;
}

.pw-rules li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    line-height: 1.4;
    color: #6B6B6B;
    transition: color 0.2s ease;
}

/* วงกลมสถานะหน้าแต่ละข้อ: ว่าง → ✓ เขียว → ✕ แดง */
.pw-ic {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid #AAB7A6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #FFFFFF;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.pw-rules li.is-ok .pw-ic {
    background: #2E7D32;
    border-color: #2E7D32;
}

.pw-rules li.is-ok .pw-ic::before {
    content: "\2713";
}

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

.pw-rules li.is-bad .pw-ic {
    border-color: #E74C3C;
    color: #E74C3C;
}

.pw-rules li.is-bad .pw-ic::before {
    content: "\2715";
}

/* ============================================================
   เพิ่ม 26 ก.ย. 2026 — อ่านง่ายขึ้นบนมือถือ
   ข้อความยาว (เช่น สัญลักษณ์ ! @ # $ % + - _ .) ตัดเป็น 2 บรรทัดบนจอแคบ
   จึงจัดวงกลมสถานะชิดบนแทนกึ่งกลาง
   ============================================================ */
@media (max-width: 480px) {

    .pw-rules li {
        font-size: 14px;
        align-items: flex-start;
    }

    .pw-ic {
        margin-top: 2px;
    }
}
