/* =====================================================================
 * auth.css
 * 認証系画面（AUTH-001〜005）専用カスタムスタイル
 * ---------------------------------------------------------------------
 * Bootstrap 5.3.x を補助する最小限のカスタム。
 * Excel画面設計書「レスポンシブ対応仕様」のカード幅指定と整合する。
 * ===================================================================== */

/* ---------------------------------------------------------------
 * 全体トーン
 * ------------------------------------------------------------- */
:root {
  /* 認証系画面の基本配色（Bootstrap既定をベースに微調整） */
  --auth-bg: #f5f7fa;
  --auth-card-bg: #ffffff;
  --auth-primary: #0d6efd;     /* Bootstrap primary準拠 */
  --auth-text: #212529;
  --auth-muted: #6c757d;
  --auth-border: #dee2e6;
  --auth-step-active: #0d6efd;
  --auth-step-done: #198754;   /* 完了は緑 */
  --auth-step-pending: #ced4da;
}

body {
  background-color: var(--auth-bg);
  color: var(--auth-text);
}

/* ロゴマーク */
.brand-mark {
  display: inline-block;
  margin-right: .25rem;
  color: var(--auth-primary);
}

/* ---------------------------------------------------------------
 * 認証カード共通スタイル
 * Excel設計書「md: col-6 offset-3、lg: col-4 offset-4、xl: max-width 480px」を反映
 * ------------------------------------------------------------- */
.auth-card {
  background-color: var(--auth-card-bg);
  border: 1px solid var(--auth-border);
  border-radius: .5rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

@media (min-width: 992px) {
  .auth-card { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08); }
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ページタイトルバー（登録系で使用） */
.page-title-bar {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1f5 100%);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--auth-border);
}
.page-title-bar h1 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

/* ---------------------------------------------------------------
 * ステップインジケーター
 * ------------------------------------------------------------- */
.step-indicator__list {
  font-size: .95rem;
}

.step-indicator__item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background-color: #ffffff;
  color: var(--auth-muted);
  border: 1px solid var(--auth-step-pending);
}

.step-indicator__item .step-indicator__no {
  font-weight: 700;
}

.step-indicator__item.is-active {
  background-color: var(--auth-step-active);
  color: #ffffff;
  border-color: var(--auth-step-active);
}

.step-indicator__item.is-done {
  background-color: var(--auth-step-done);
  color: #ffffff;
  border-color: var(--auth-step-done);
}

.step-indicator__sep {
  color: var(--auth-muted);
  font-weight: 700;
}

/* ---------------------------------------------------------------
 * フォーム関連の補助
 * ------------------------------------------------------------- */
.required-mark {
  display: inline-block;
  margin-left: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .35rem;
  background-color: #dc3545;
  color: #ffffff;
  border-radius: .25rem;
}

.optional-mark {
  display: inline-block;
  margin-left: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .35rem;
  background-color: #6c757d;
  color: #ffffff;
  border-radius: .25rem;
}

.form-help-text {
  font-size: .8rem;
  color: var(--auth-muted);
}

/* パスワード表示切替トグルのレイアウト調整 */
.pw-toggle {
  font-size: .875rem;
}

/* ---------------------------------------------------------------
 * プランカード（AUTH-002）
 * ------------------------------------------------------------- */
.plan-card {
  border: 1px solid var(--auth-border);
  border-radius: .5rem;
  padding: 1.5rem;
  background-color: var(--auth-card-bg);
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05);
  height: 100%;
}

.plan-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-card__price {
  font-size: 1rem;
  margin-bottom: .25rem;
}

.plan-card__features {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.plan-card__features li {
  padding: .15rem 0;
}

.plan-card__features li::before {
  content: "✔";
  color: var(--auth-step-done);
  font-weight: 700;
  margin-right: .35rem;
}

/* ---------------------------------------------------------------
 * 完了画面のチェックアイコン（AUTH-005）
 * ------------------------------------------------------------- */
.complete-icon {
  font-size: 4rem;
  color: var(--auth-step-done);
  line-height: 1;
}

/* ---------------------------------------------------------------
 * 確認テーブル（AUTH-004）
 * ------------------------------------------------------------- */
.confirm-table th {
  width: 35%;
  background-color: #f8f9fa;
  vertical-align: middle;
}

/* ---------------------------------------------------------------
 * AUTH-006 処理フロー図用
 * ------------------------------------------------------------- */
.flow-step {
  border: 1px solid var(--auth-border);
  border-radius: .5rem;
  padding: .75rem 1rem;
  background-color: var(--auth-card-bg);
}

.flow-arrow {
  text-align: center;
  color: var(--auth-muted);
  font-size: 1.25rem;
}
