/* AiCfo 認証画面共通スタイル
 * register / pending / login で共用
 * ブランドカラー: ゴールド #b8952e、サイドバー黒 #0f1117、テキスト #1a1f36
 */

:root {
  --gold: #b8952e;
  --gold-dark: #9b7d23;
  --ink: #1a1f36;
  --ink-soft: #5a6178;
  --ink-muted: #8c90a6;
  --border: #e5e7ef;
  --bg: #f7f8fa;
  --card: #ffffff;
  --error: #c0392b;
  --error-bg: #fdecea;
  --success: #1f7a3f;
  --success-bg: #ecf7ef;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 17, 23, 0.06);
  padding: 40px 32px 32px;
}

/* ブランドロゴ */
.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}
.auth-brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.auth-brand-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.auth-brand-logo .gold {
  color: var(--gold);
}
.auth-brand-tagline {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* 見出し */
.auth-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 6px;
  color: var(--ink);
}
.auth-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 24px;
}

/* フォーム */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.auth-field .optional {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: normal;
  margin-left: 6px;
}
.auth-field input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 46, 0.12);
}
.auth-hint {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ボタン */
.auth-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  margin-top: 8px;
}
.auth-btn:hover:not(:disabled) {
  background: var(--gold-dark);
}
.auth-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.auth-btn:disabled {
  background: #c8c9d2;
  cursor: not-allowed;
}

/* メッセージ */
.auth-error {
  background: var(--error-bg);
  color: var(--error);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: pre-line;
}
.auth-success {
  background: var(--success-bg);
  color: var(--success);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 8px;
}

/* 補助テキスト・リンク */
.auth-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f4f5f9;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 20px 0 0;
}
.auth-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.auth-link a:hover {
  text-decoration: underline;
}

/* 通知ページ用 */
.auth-message {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 16px 0 24px;
  line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 480px) {
  body {
    padding: 12px 8px;
  }
  .auth-card {
    padding: 32px 20px 24px;
    border-radius: 10px;
  }
  .auth-brand-logo {
    font-size: 24px;
  }
}
