/*
 * ログイン・新規登録ページのスタイル
 * about.html / howto.html と同じ、清潔な緑系のデザインに合わせる
 * （AdminLTE などの重いテンプレートは読み込まず、このCSSだけで整える）
 */
:root {
  --green: #1b6f4a;
  --green-dark: #11523a;
  --green-light: #e8f3ee;
  --text: #1f2a30;
  --muted: #4f5b62;
  --line: #d7e2dd;
  --danger: #c0392b;
  --focus: #ffbf47;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body.auth-page {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #eef3f1;
}
a { color: #0f5fa8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ヘッダー */
.auth-header { background: #fff; border-bottom: 1px solid var(--line); }
.auth-header-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.auth-brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.auth-brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.4; }
.auth-nav a { margin-left: 14px; text-decoration: none; font-weight: 700; }

/* 本体 */
.auth-main { max-width: 520px; margin: 0 auto; padding: 32px 20px 60px; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.auth-card.is-wide { max-width: 100%; }
.auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.auth-msg { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* お知らせ・エラー */
.auth-notice {
  background: #fff8e6; border: 1px solid #f0d58c; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 18px;
}
.auth-notice h2 { font-size: 15px; margin: 0 0 4px; }
.auth-notice p { margin: 0; }

/* 入力項目 */
.auth-field { margin-bottom: 16px; }
.auth-field > label { display: block; font-weight: 700; margin-bottom: 5px; }
.auth-field .req { color: var(--danger); font-size: 13px; margin-left: 4px; }
.auth-input, select.auth-input {
  width: 100%; padding: 10px 12px; font-size: 16px; line-height: 1.5;
  border: 1px solid #b9c6c2; border-radius: 6px; background: #fff; color: var(--text);
}
.auth-input:focus, select.auth-input:focus { border-color: var(--green); }
.auth-field.has-error .auth-input { border-color: var(--danger); background: #fff6f5; }
.auth-field .help-block { display: none; color: var(--danger); font-size: 13px; margin: 5px 0 0; }
.auth-field.has-error .help-block { display: block; }
.auth-hint { font-size: 13px; color: var(--muted); margin: 5px 0 0; }

/* ラジオ（性別など） */
.auth-radios { display: flex; gap: 18px; flex-wrap: wrap; }
.auth-radios label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.auth-radios input { width: 18px; height: 18px; }

/* ボタン */
.auth-btn-main {
  display: block; width: 100%; padding: 12px; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--green); border: 2px solid var(--green); border-radius: 6px;
  cursor: pointer; text-align: center; text-decoration: none;
}
.auth-btn-main:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.auth-alt { text-align: center; margin: 18px 0 0; }
.auth-alt a { font-weight: 700; }

/* 2列（新規登録の一部） */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .auth-row { grid-template-columns: 1fr; } }
