* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

/* พื้นหลัง Gradient */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a73e8, #6a11cb);
}

/* กล่องฟอร์ม */
.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 45px 35px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  width: 380px;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-form h2 {
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.error-message {
  color: #d90429;
  background: #ffe5e5;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.input-group {
  display: flex;
  align-items: center;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}
.input-group:focus-within {
  border-color: #6a11cb;
  box-shadow: 0 0 8px rgba(106, 17, 203, 0.3);
}
.input-group i {
  margin-right: 10px;
  color: #6a11cb;
  font-size: 18px;
}
.input-group input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  background: transparent;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a73e8, #6a11cb);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.3);
}

.forgot-password {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}
.forgot-password:hover {
  color: #6a11cb;
  text-decoration: underline;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #ec122f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
}
.back-btn:hover {
  background-color: #ad092d;
}
