/* Reset เบื้องต้น */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* พื้นหลังหน้า login */
body {
  height: 100vh;
  background: linear-gradient(135deg, #4a90e2, #50e3c2);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* กล่อง login */
.login-container {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 350px;
}

/* ชื่อเรื่อง */
.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #4a90e2;
}

/* ข้อความ error */
.login-box p {
  margin-bottom: 15px;
  color: #e74c3c;
  text-align: center;
  font-weight: 600;
}

/* input ฟอร์ม */
.login-box input[type="email"],
.login-box input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus {
  border-color: #4a90e2;
  outline: none;
}

/* ปุ่มเข้าสู่ระบบ */
.login-box button {
  width: 100%;
  background-color: #4a90e2;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-box button:hover {
  background-color: #357ABD;
}

/* ลิงก์สมัครสมาชิก */
.login-box p.register-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #666;
}

.login-box p.register-link a {
  color: #4a90e2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.login-box p.register-link a:hover {
  color: #357ABD;
}
