/* ログイン、登録、招待の 3 枚の見た目（2026-10-23、HANDOFF §91）。
   WHY(ツールの画面と同じ色と角): 入る前の画面だけ古いモックの CSS（app.css）で、入ったあとの画面と色、角の丸み、
        ボタンの高さが違っていた。ツールの画面（frontend/src/index.css）の青と同じ色相にそろえる
   WHY(別のファイル): 3 枚が同じ <style> を書き写していて、1 枚だけ直すと残りがずれた */
:root {
  color-scheme: light;
  --primary: #2453c8;
  --primary-hover: #1c43a6;
  --text: #18181b;
  --muted: #6b7280;
  --line: #e4e4e7;
  --bg: #f6f7f9;
  --warn-bg: #fffbeb; --warn-line: #fcd34d; --warn-text: #92400e;
  --info-bg: #eff6ff; --info-line: #bfdbfe; --info-text: #1e40af;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.auth-brand img { width: 36px; height: 36px; border-radius: 9px; }
.auth-card {
  width: 400px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06); padding: 28px;
}
.auth-card h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.auth-lead { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.field-label { display: block; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  font-family: inherit; font-size: 14px; color: inherit; background: #fff;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 83, 200, .15); }
.code-input { height: 52px; font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #f4f4f5; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.links a, .links button { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-family: inherit; font-size: 13px; text-decoration: none; }
.links a:hover, .links button:hover { text-decoration: underline; }
.notice { display: flex; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; line-height: 1.6; }
.notice.info { border-color: var(--info-line); background: var(--info-bg); color: var(--info-text); }
.notice .ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: currentColor; }
.notice .ic::after { content: "!"; color: #fff; font-size: 12px; font-weight: 700; }
.notice.info .ic::after { content: "i"; }
.notice b { display: block; }
.auth-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.auth-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; padding: 14px 16px; border-radius: 10px; background: #f8f9fb; font-size: 13px; }
.auth-details dt { color: var(--muted); }
.auth-details dd { margin: 0; word-break: break-all; }
.company { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.hidden { display: none !important; }
