/* src/public/css/login.css */

body {
  font-family: sans-serif;
  padding: 30px;
}

.box {
  width: 320px;
  margin: 0 auto;
}

.error {
  color: red;
}

input {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 10px;
}

/* Google公式風ボタン（素材ベース） */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: none;
  border: 1px solid #747775;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;

  /* ★あなたの要望：ログインボタンと同じ幅に */
  width: 100%;
  max-width: 100%;
  display: block;
  text-decoration: none;
  margin-bottom: 10px;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center; /* テキスト中央寄せ */
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  flex-grow: 0;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

/* 注釈（ボタンと同じ幅で表示） */
.google-note {
  box-sizing: border-box;   /* ★幅ズレ解消 */
  width: 100%;

  padding: 10px 12px;
  margin: 12px 0 18px;

  font-size: 12px;
  line-height: 1.6;
  color: #666;

  background: #fffdf5;
  border: 1px solid #f0e6c8;
  border-radius: 6px;

  text-align: center;
}

/* 区切り線（任意） */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

/* =========================
   旧「配布報告ログイン」寄せ（オレンジ基調）追加CSS
   ※ login.css の末尾に追記
   ========================= */

/* ① body：背景と余白 */
body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #f9e9bf;
  padding: 0;
  margin: 0;
}

/* ② ログインボックスをカード化 */
.box {
  width: 360px;
  margin: 60px auto;
  padding: 28px 24px;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ③ タイトルをオレンジ寄せ（h1/h2がある場合に効く） */
.box h1,
.box h2 {
  text-align: center;
  color: #ff9800;
  font-size: 22px;
  margin: 0 0 20px 0;
  font-weight: 700;
}

/* 入力ラベルがある場合の見た目を少し整える（任意・安全） */
.box label {
  display: block;
  font-size: 13px;
  color: #444;
  margin: 10px 0 6px;
}

/* ④ 通常ログインボタンをオレンジに（既存buttonを上書き） */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 6px;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #fb8c00;
}

/* ⑤ input をスッキリ（既存inputを上書き） */
input {
  width: 100%;
  padding: 10px;
  margin: 6px 0 14px 0;

  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* フォーカス時にオレンジ枠 */
input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

/* ⑥ Googleログインボタンの間隔だけ整理（色はそのまま） */
.gsi-material-button {
  margin-bottom: 12px;
}

/* ⑦ 注釈を少し柔らかく */
.google-note {
  font-size: 12px;
  color: #666;
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

/* 区切り線も少し控えめに */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

/* エラー表示を少し見やすく */
.error {
  color: #d32f2f;
  font-size: 13px;
  margin: 8px 0 12px;
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .box {
    width: auto;
    margin: 30px 16px;
    padding: 24px 18px;
  }
}
/* 成功 */
.success {
  color: #2e7d32;
  font-size: 13px;
  margin: 8px 0 12px;
}

/* email入力の見た目を安定させる（任意） */
.box input[type="email"] {
  letter-spacing: 0.2px;
}
.password-note {
  font-size: 12px;
  color: #666;
  margin-left: 8px;
  font-weight: normal;
}

.field-error {
  color: #d93025;
  font-size: 13px;
  margin: 6px 0 12px;
  min-height: 18px;
}

.input-error {
  border: 1px solid #d93025 !important;
}

.error {
  color: #d93025;
  font-size: 14px;
  margin-bottom: 12px;
}

