body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  /* พื้นหลังไล่ระดับสีแบบเดิม (ไม่เคลื่อนไหว) */
  background: linear-gradient(135deg, #007BFF 0%, #00BFFF 100%);
  height: 100vh;
}

.login-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  /* กรอบโปร่งแสงและมีเอฟเฟกต์กระจกฝ้า */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* จัดเนื้อหาข้างในให้อยู่กลาง */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: auto;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #343a40;
  font-weight: 600;
  font-size: 24px;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #adb5bd;
    height: 16px;
    width: 16px;
}

input[type="text"], 
input[type="password"] {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Kanit', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: #6c757d;
}
.password-toggle svg {
    width: 20px;
    height: 20px;
}

input[type="text"]:focus, 
input[type="password"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

button[type="submit"] {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Kanit', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

button[type="submit"]:active {
    transform: scale(0.98);
}