```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Strength Checker</title>
<style>
.password-strength {
width: 100%;
height: 20px;
margin-top: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>Password Strength Checker</h1>
<label for="username">Username:</label>
<input type="text" id="username"><br><br>
<label for="password">Password:</label>
<input type="password" id="password"><br><br>
<button onclick="checkPassword()">Check Password</button><br>
<div class="password-strength" id="passwordStrength"></div>
<script>
function checkPassword(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
var strength = 0;
// Check password length
if(password.length > 8){
strength++;
}
// Check if password is not a common word
var commonWords = ["password", "123456", "qwerty", "letmein"];
if(!commonWords.includes(password.toLowerCase())){
strength++;
}
// Display password strength
var passwordStrength = document.getElementById("passwordStrength");
passwordStrength.style.backgroundColor = getColorByStrength(strength);
}
function getColorByStrength(strength){
switch(strength){
case 0:
return "#ff6666";
case 1:
return "#ffcc66";
case 2:
return "#ffff66";
case 3:
return "#66ff66";
case 4:
return "#66ccff";
default:
return "#cccccc";
}
}
</script>
</body>
</html>
```
このHTMLファイルでは、ユーザー名とパスワードを入力し、パスワードの強度を評価してカラーバーで表示する機能が実装されています。常用単語を含まないかどうかもチェックされますが、IDとパスワードの組み合わせが漏洩していないかの検索機能は、セキュリティ上のリスクを避けるために実装されていません。