/* พื้นหลังแบบ gradient คล้ายในภาพตัวอย่าง */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #6fb6b8 0%, #aad2c9 50%, #d0e5df 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.login-container {
  background-color: rgba(255, 255, 255, 0.95);
  width: 350px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
}

/* ไอคอนผู้ใช้ด้านบน */
.login-container .user-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 0;
}

h2.login-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  margin-top: 0;
}

.message-error {
  color: red;
  margin-bottom: 10px;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-form .input-group {
  width: 100%;
  margin-bottom: 15px;
  position: relative;
  padding-right: 50px;
  padding-left: 50px;
}
.login-form .input-group label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}
.login-form .input-group input {
  width: 94%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Kanit', 'Sarabun', sans-serif !important;
}

.login-form .input-group select {
  width: 94% !important;                /* กำหนดความกว้าง */
  padding: 10px !important;             /* padding ตามต้องการ */
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background-color: #fff !important;
  color: #333 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url('img/arrow-down.png') !important; /* ตรวจสอบ path ให้ถูกต้อง */
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
}

/* เมื่อ focus ให้เปลี่ยนสี border */
.login-form .input-group select:focus {
  border-color: #7CBD43 !important;
  outline: none !important;
}


/* Remember me + forgot password */
.extra-options {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}
.extra-options a {
  color: #2a7e9f;
  text-decoration: none;
}
.extra-options a:hover {
  text-decoration: underline;
}
.extra-options .remember-me {
  display: flex;
  align-items: center;
}
.extra-options .remember-me input[type="checkbox"] {
  margin-right: 5px;
}

.login-btn-submit {
  width: 100%;
  background-color: #399697; /* ปุ่มสีเขียวฟ้านิดๆ */
  color: #fff;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-btn-submit:hover {
  background-color: #2a7e9f;
}

/* ปุ่มกลับหน้า index */
.back-btn {
    background-color: transparent;
    border: none;
    font-size: 30px;       /* ปรับขนาดตัวอักษรของกากบาท */
    color: #333;           /* สีของกากบาท */
    cursor: pointer;
    position: absolute;    /* ถ้าต้องการให้แสดงในตำแหน่งเฉพาะ */
    top: 2px;             /* ปรับตำแหน่งตามต้องการ */
    right: 5px;           /* ปรับตำแหน่งตามต้องการ */
    transition: color 0.2s ease;
  }
