/* ページ全体の背景 */
body {
  background-image: url('/static/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Arial', sans-serif;
}

/* 中央のフォームコンテナ */
.form-container {
  text-align: center;
  background-color: rgba(19, 41, 61, 0.85); /* 半透明の背景 */
  padding: 2.5rem 3.5rem;
  border-radius: 1.25rem;
  border: 2px solid #6dd5ed;
  box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.3);
  width: 35%;
  max-width: 500px;
  box-sizing: border-box;
}

/* 「ログイン」タイトル */
.form-title {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0;
  margin-bottom: 2rem;
}

/* フォームの各要素 */
.form-group {
  margin-bottom: 1.25rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

/* 送信ボタン */
.submit-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background-color: #28a745;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* リンク */
.link-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.link-group a {
  color: #6dd5ed;
  text-decoration: underline;
}

/* エラーメッセージ */
.flash-messages {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 0.5rem;
}
.flash-messages p {
  margin: 0;
}

/* 画面幅が768px以下（スマートフォンなど）の場合に適用されるスタイル */
@media (max-width: 768px) {

  /* 中央のボックスの幅を広げ、余白を調整 */
  .form-container {
    width: 90%; /* 横幅を画面いっぱいに広げる */
    padding: 2.5rem 1.5rem; /* 内側の余白を少し狭くする */
  }

  /* タイトルの文字サイズを少し小さくする */
  .form-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  /* ボタンや入力欄の文字サイズを調整 */
  input[type="text"],
  input[type="password"] {
    font-size: 1.1rem; /* 入力文字を少し大きくする */
  }

  .submit-btn {
    font-size: 1.1rem;
    padding: 1rem;
  }
}