/* === デモ: 縦並びレイアウト === */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

/* 各パターンを囲むカード */
.pw-pattern {
  margin-bottom: 16px;
  padding: 20px;
  background: #F4F6F9;
  border-radius: 8px;
  max-width: 400px;
}

.pw-pattern:last-of-type { margin-bottom: 0; }

.pw-pattern-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* inputとボタンを重ねるコンテナ */
.pw-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input {
  width: 100%;
  padding: 10px 44px 10px 12px;
  font-size: 14px;
  font-family: sans-serif;
  color: #1A2332;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pw-input:focus {
  border-color: #2B7FE8;
  box-shadow: 0 0 0 3px rgba(43, 127, 232, 0.12);
}

/* 目アイコンボタン */
.pw-toggle-btn {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #8A9BAE;
  line-height: 0;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.pw-toggle-btn:hover { color: #5A6A7A; }

/* 初期状態: 目を閉じるアイコンは非表示 */
.pw-icon--hide { display: none; }

/* .is-visible クラスが付いたときアイコンを入れ替える */
.pw-toggle-btn.is-visible .pw-icon--show { display: none; }
.pw-toggle-btn.is-visible .pw-icon--hide { display: block; }

/* === 強度インジケーター === */
.pw-strength-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.pw-strength-bar-track {
  flex: 1;
  height: 6px;
  background: #D0D7E0;
  border-radius: 3px;
  overflow: hidden;
}

.pw-strength-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.3s, background-color 0.3s;
}

.pw-strength-label {
  font-size: 12px;
  font-weight: 700;
  min-width: 60px;
  color: #5A6A7A;
}

/* === 条件チェックリスト === */
.pw-criteria-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-criteria-item {
  font-size: 13px;
  color: #9AA5B4;
  padding-left: 18px;
  position: relative;
}

.pw-criteria-item::before {
  content: '○';
  position: absolute;
  left: 0;
  font-size: 11px;
}

/* 達成済み: 緑 + チェックマーク */
.pw-criteria-item.met {
  color: #22C55E;
}

.pw-criteria-item.met::before {
  content: '✓';
  font-weight: 700;
}

/* リセットボタン */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* プロンプトブロック */
.prompt-block { margin-bottom: 20px; }
.prompt-block:last-child { margin-bottom: 0; }

.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}
