/* common.css — shingo-camera Platform 共通スタイル
 *
 * 設計方針: ADR-010「製品中心のミニマルデザイン」。華美にしない。
 * フレームワーク不使用。素の CSS のみ。
 */

:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --border: #2a2f3a;
  --text: #e6e8ec;
  --muted: #9aa0aa;
  --accent: #4f8cff;
  --accent-hover: #3d78e6;
  --danger: #ff6b6b;
  --ok: #4fd18b;
  --radius: 10px;
  --maxw: 420px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
}

.wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 4px;
}

h1 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 650;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: default; }

.links {
  margin-top: 18px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.msg {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.2em;
}
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }
.msg.info { color: var(--muted); }

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
