/* ============================================================
   ログインの入口（保護者 index.html／生徒 student/login.html／スタッフ staff.html）の共通の見た目
   2026-10-07 加納さん「ログイン画面がよくわからん状態。デザインともに見直して」
   ・3つの入口を同じ形にそろえ、いちばん上に「保護者／生徒／スタッフ」の切り替えを置く（どこにいるか分かる）
   ・背景は1色（グラデーションが画面の途中で切れていた）。フッターも同じ背景の中に置く
   ・ロゴの線画（崩れて見えた）はやめて文字のロゴに
   ============================================================ */
:root {
  --e-bg: #eef2f7;
  --e-card: #ffffff;
  --e-ink: #1e293b;
  --e-muted: #5b6676;
  --e-line: #e2e8f0;
  --e-field: #cbd5e1;
  --e-accent: #2563eb;
  --e-accent-ink: #ffffff;
  --e-soft: #eff6ff;
}
html, body { height: 100%; }
body.entry {
  margin: 0; background: var(--e-bg); color: var(--e-ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100%;
}
.entry-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.entry-card {
  width: 100%; max-width: 420px; box-sizing: border-box;
  background: var(--e-card); border: 1px solid var(--e-line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  padding: 28px 28px 24px; display: grid; gap: 18px;
}
.entry-brand { text-align: center; display: grid; gap: 2px; }
.entry-brand .wm { font-weight: 800; font-size: 1.55rem; letter-spacing: .14em; color: var(--e-accent); }
.entry-brand .sub { font-size: .76rem; color: var(--e-muted); letter-spacing: .04em; }

/* だれの入口か（切り替え） */
.entry-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f1f5f9; border-radius: 12px; padding: 4px; }
.entry-who a {
  text-align: center; padding: 9px 4px; border-radius: 9px; font-weight: 700; font-size: .88rem;
  color: var(--e-muted); text-decoration: none;
}
.entry-who a:hover { color: var(--e-ink); }
.entry-who a[aria-current="page"] { background: #fff; color: var(--e-accent); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.entry-who a:focus-visible, .entry-btn:focus-visible, .entry-link:focus-visible { outline: 3px solid var(--e-accent); outline-offset: 2px; }

.entry-title { font-weight: 800; font-size: 1.08rem; margin: 0; }
.entry-lead { font-size: .84rem; color: var(--e-muted); margin: 4px 0 0; line-height: 1.7; }

.entry-form { display: grid; gap: 14px; }
.entry-field { display: grid; gap: 6px; }
.entry-field label { font-weight: 700; font-size: .84rem; }
.entry-field input {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--e-field); border-radius: 10px;
  background: #fff; color: var(--e-ink); width: 100%; box-sizing: border-box;
}
.entry-field input:focus { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.entry-field .hint { font-size: .76rem; color: var(--e-muted); line-height: 1.6; }

.entry-btn {
  font: inherit; font-weight: 800; font-size: 1rem; padding: 13px; border: 0; border-radius: 10px;
  background: var(--e-accent); color: var(--e-accent-ink); cursor: pointer; width: 100%;
}
.entry-btn:disabled { opacity: .6; cursor: default; }

.entry-msg { font-size: .86rem; line-height: 1.6; border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.entry-msg:empty { display: none; }
.entry-msg.error { background: #fef2f2; color: #b91c1c; }
.entry-msg.info { background: var(--e-soft); color: #1d4ed8; }
.entry-msg.success { background: #f0fdf4; color: #15803d; }

.entry-help { font-size: .84rem; color: var(--e-muted); text-align: center; display: grid; gap: 10px; border-top: 1px solid var(--e-line); padding-top: 16px; }
.entry-link { color: var(--e-accent); font-weight: 700; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.entry-note { background: #f8fafc; border: 1px solid var(--e-line); border-radius: 10px; padding: 12px 14px; text-align: left; font-size: .84rem; line-height: 1.7; color: var(--e-ink); }

.entry-foot { text-align: center; font-size: .74rem; padding: 0 16px 22px; }
.entry-foot a { color: var(--e-muted); text-decoration: none; margin: 0 8px; }

@media (max-width: 420px) { .entry-card { padding: 22px 18px 20px; } }
