/* =====================================================
   account.css - アカウントページ専用スタイル
   ===================================================== */

.acct-body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100dvh;
}

.acct-screen { display: none; }
.acct-screen.active { display: block; }

/* --- ログイン画面 --- */
.acct-panel {
  max-width: 360px;
  margin: 10vh auto 0;
  padding: 24px;
  text-align: center;
}
.acct-logo-link { display: inline-block; margin-bottom: 12px; }
.acct-logo { width: 64px; height: 64px; }
.acct-logo-small { width: 32px; height: 32px; }
.acct-title { font-size: 1.5rem; margin: 0 0 24px; }
.acct-title-small { font-size: 1.1rem; margin: 0; flex: 1; }

.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-form[hidden] { display: none; }
.acct-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); cursor: pointer; }
.acct-checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.acct-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
}
.acct-desc { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.acct-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}
.acct-btn-primary { background: var(--accent-color); color: #fff; }
.acct-btn-link { background: transparent; color: var(--accent-color); text-decoration: underline; }
.acct-btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.acct-btn-danger { background: #ef4444; color: #fff; }

.acct-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.acct-info {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-color);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* --- ヘッダー --- */
.acct-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

/* --- アカウント情報 --- */
.acct-section {
  max-width: 560px;
  margin: 16px auto;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
}
.acct-section-title { font-size: 1rem; margin: 0 0 12px; }
.acct-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.acct-info-label { color: var(--text-secondary); font-size: 0.9rem; }
.acct-info-value { font-size: 0.95rem; }

.acct-app-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acct-app-list a { color: var(--accent-color); text-decoration: none; }
.acct-app-list a:hover { text-decoration: underline; }

.acct-section-danger { border-color: rgba(239, 68, 68, 0.4); }
.acct-section-danger .acct-section-title { color: #ef4444; }

.acct-msg { font-size: 0.9rem; margin-top: 8px; }
.acct-msg-error { color: #ef4444; }

/* --- 確認ダイアログ --- */
.acct-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.acct-dialog-overlay[hidden] { display: none; }
.acct-dialog {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  max-width: 320px;
  width: 90%;
}
.acct-dialog-message { margin: 0 0 16px; }
.acct-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
