/* オーバーレイ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;             /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ダイアログ本体 */
.modal-window {
  background: #fff;
  border-radius: 8px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
}

/* タイトル */
.modal-title {
  margin: 0 0 16px;
  font-size: 20px;
}

/* 入力エリアを縦並びに */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* 「入力フィールド」風スタイル */
.login-field {
  border: 2px solid #001F5B;
  border-radius: 4px;
  padding: 10px;
  min-height: 25px;
  line-height: 1.4;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #001F5B;
  outline: none;
  position: relative;
}
/* プレースホルダー表示 */
.login-field:empty::before {
  content: attr(data-placeholder);
  position: absolute;
  left: 10px; right: 10px;
  color: #aaa;
  pointer-events: none;
}

/* クラスがつくと見えるようになる */
.password-field.show-password {
  -webkit-text-security: none;
}

/* ボタン共通 */
.btn {
  /* 入力フィールドとほぼ同じ高さになるように固定 */
  height: 46px;
  line-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin: 0 8px;
  box-sizing: border-box;
  vertical-align: middle;
}

/* OK ボタン（緑） */
.btn-ok {
  background: #28a745;
  color: #fff;
}

/* キャンセル（赤） */
.btn-cancel {
  background: #dc3545;
  color: #fff;
}

/* ── ② 目アイコンのスタイル ── */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.toggle-password:focus {
  outline: none;
}

/* タイトル下のエラーメッセージ */
.login-error {
  color: #c00;
  font-size: 14px;
  margin: 8px 0 0;
  min-height: 1em; /* メッセージがない時のレイアウト崩れ防止 */
}