/* ログイン停止ページ用スタイル（本番ログイン画面の配色・レイアウトに準拠） */
:root {
  --primary: #21c5c2;        /* --color-primary */
  --primary-light: #e7f8f8;  /* lightGreen（カード背景） */
  --teal: #14b8a6;           /* tailwind teal-500（ログインボタン） */
  --teal-hover: #0d9488;     /* tailwind teal-600 */
  --text: #515151;           /* customGray（ラベル） */
  --text-dark: #1f2937;      /* gray-800（見出し） */
  --border: #e5e7eb;         /* gray-200（入力枠） */
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* カード */
.card {
  width: 100%;
  max-width: 760px;
  background: var(--primary-light);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  padding: 24px 24px 32px;
}

h1 {
  margin: 0 0 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

/* フォーム */
form {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.field { margin-bottom: 16px; }

label.title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #9ca3af; }
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgb(20 184 166 / 0.25);
}

/* ログインボタン */
.actions { display: flex; justify-content: center; margin-top: 24px; }

button.login {
  width: 66.6667%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
button.login:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
button.login:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 2px; }

/* 自動ログイン トグル */
.remember {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: #374151;
}
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider {
  position: absolute;
  inset: 0;
  background: #c1c1c1;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s;
}
.toggle .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: transform .2s;
}
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:focus-visible + .slider { outline: 2px solid var(--teal-hover); outline-offset: 2px; }

/* 停止メッセージ（ボタン押下後に表示） */
.notice {
  display: none;
  margin-top: 24px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 8px;
  text-align: center;
}
.notice.show { display: block; }
.notice strong { display: block; font-size: 16px; font-weight: 700; }

/* お忘れの方リンク */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 24px;
  text-align: center;
}
.links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: #4b5563;
  text-decoration: underline;
  cursor: pointer;
}
.links button:hover { color: var(--text-dark); }

/* ロゴ */
.logo { margin-top: 32px; text-align: center; }
.logo img { height: 80px; width: auto; display: inline-block; }

@media (max-width: 480px) {
  .card { padding: 20px 16px 24px; }
  h1 { margin-bottom: 36px; }
  button.login { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
