/* Reference https://protogram.jp/lesson/javascript-chat-client */

/* body全体に index.css と同様の背景を適用 */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-image: url("../../assets/light_blue_solid_background.png");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* ログイン画面のコンテナ。index.css の .container のイメージを引き継ぎつつサイズなど調整 */
.login-container {
  background-color: #7993be86;
  width: 400px;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* タイトル */
.login-container h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* フォーム全体 */
.login-container form {
  display: flex;
  flex-direction: column;
}

/* 各入力欄のラッパー */
.login-container .form-group {
  margin-bottom: 15px;
}

/* ラベル */
.login-container label {
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}

/* 入力欄 */
.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e9e9ed;
  border-radius: 24px;
  background-color: #f6f6f6;
  box-sizing: border-box;
}

/* ログインボタン */
.login-container button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #3f84ef;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;  /* 追加：幅を統一 */
}

/* ホバー時の変化 */
.login-container button:hover {
  background-color: #327ac0;
}

/* accountcreate-container: ログインフォーム下部に配置 */
.accountcreate-container {
  margin-top: 10px;  /* 変更：20px → 10px */
  text-align: center;
  width: 400px;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 新しいアカウント作成ボタン（ログインボタンと異なる色に設定） */
.create-account-button {
　padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #3f84ef;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 100%;  /* 追加：幅を統一 */
}

/* ホバー時の変化 */
.create-account-button:hover {
  background-color: #388e3c;
}
/* パスワードお忘れボタン（アカウント作成ボタンより薄い色） */
.login-container .forgot-password-button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #d7f0ff; /* さらに薄い水色 */
  color: #000; /* フォント色を黒に変更 */
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
/* ————————————— 利用規約テキストボックス ————————————— */
.login-container .terms-group {
  margin-bottom: 15px;
}

.login-container .terms-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}

.login-container .terms-group textarea {
  width: 100%;
  height: 200px;              /* 高さは適宜調整 */
  padding: 10px 15px;
  border: 1px solid #e9e9ed;
  border-radius: 24px;
  background-color: #f6f6f6;
  box-sizing: border-box;
  resize: none;               /* 大小変更不可 */
  overflow-y: auto;           /* スクロール有効 */
  font-family: sans-serif;
  line-height: 1.5;
}
/* ---------- Responsive Design (768px 以下の場合) ---------- */
@media screen and (max-width: 768px) {
  /* コンテナの幅とパディングを調整 */
  .login-container,
  .accountcreate-container {
    width: 90%;
    padding: 20px;
  }
  
  /* タイトルやラベル、ボタンのフォントサイズを調整 */
  .login-container h2,
  .accountcreate-container h2 {
    font-size: 20px;
  }
  
  .login-container label {
    font-size: 12px;
  }
  
  .login-container input[type="email"],
  .login-container input[type="password"] {
    padding: 8px 12px;
  }
  
  .login-container button,
  .create-account-button {
    font-size: 14px;
    padding: 8px;
  }
  .login-container .terms-group textarea {
    height: 150px;            /* スマホ時は少し低く */
    padding: 8px 12px;
  }
}
