/* login.css */

/* 1. グローバルに box-sizing を指定 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. フォントと背景の設定 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #74ABE2, #5563DE);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. コンテナとカードのレイアウト */
.login-container {
  width: 100%;
  max-width: 380px; /* カードを最大幅に制限 */
  margin: 0 auto;   /* 横中央寄せ */
  padding: 20px;
}

.login-card {
  width: 100%;      /* container に合わせる */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 30px 25px;
  text-align: center;
}

/* 4. タイトル */
.login-card h2 {
  margin-bottom: 24px;
  color: #333;
  font-weight: 600;
}

/* 5. 入力グループ */
.input-group {
  width: 100%;      /* カード幅いっぱい */
  margin-bottom: 18px;
  position: relative;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;      /* padding 込みで 100% */
  padding: 10px 40px 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #5563DE;
}

.toggle-password {
  position: absolute;
  top: 36px;
  right: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #5563DE;
  user-select: none;
}

/* 6. ボタン */
button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  background: #5563DE;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: #4353b3;
}

/* 7. メッセージ・エラー表示 */
.error {
  margin-top: 12px;
  color: #e74c3c;
  font-size: 0.85rem;
}

.message {
  margin-top: 12px;
  color: #2ecc71;
  font-size: 0.85rem;
}
