/**
 * account.css - アカウントページ専用スタイル
 * 会員登録・ログインページで使用
 * タブ切り替え、ビュー切り替え、パスワード強度インジケーターなど
 */

/* ==========================================
   ビュー（画面）切り替え用
   .view-panel は display:none で非表示、
   .is-active で表示。フェードインアニメーション付き
   ========================================== */
.view-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.view-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   タブのスタイル
   aria-selected でアクティブ/非アクティブを制御
   ========================================== */
.tab-btn[aria-selected="true"] {
  border-bottom-width: 3px;
  border-color: #4a5d23;
  color: #4a5d23;
  font-weight: bold;
  background-color: #ffffff;
}

.tab-btn[aria-selected="false"] {
  border-bottom-width: 1px;
  border-color: #eae6de;
  color: #888;
  background-color: #faf8f5;
}

/* ==========================================
   パスワード強度インジケーター
   会員登録・パスワード再設定フォームで使用
   ========================================== */
.pwd-req-icon.valid {
  color: #4a5d23;
}

.pwd-req-icon.invalid {
  color: #ccc;
}

.strength-bar {
  height: 4px;
  width: 0%;
  transition: all 0.3s ease;
}

.strength-weak {
  width: 33%;
  background-color: #b22222;
}

.strength-medium {
  width: 66%;
  background-color: #eab308;
}

.strength-strong {
  width: 100%;
  background-color: #4a5d23;
}
