body { font-family: sans-serif; padding: 20px; background: #f4f4f4; }
h1, h2 { color: #333; }
.container { max-width: 300px; margin: auto; }
input, textarea { display: block; width: 100%; margin: 10px 0; padding: 8px; }
button { padding: 10px; margin: 5px 0; }
.menu button { display: block; width: 100%; margin: 10px 0; }

/* กำหนดพื้นฐานสำหรับทั้งหมด */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(to bottom, #d3dafb, #fff),  /* พื้นหลังไล่สี */
    url('images/favicon.png');   /* โลโก้ซ้ำ */
  background-repeat: repeat;
  background-size: 120px;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Logo.png');
  background-repeat: repeat;
  background-size: 120px;
  opacity: 0.05;  /* ความโปร่งใส */
  z-index: -1;
}


/* คอนเทนเนอร์หลัก */
.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
h2 {
  margin-bottom: 20px;
}
input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}
.back-login {
  margin-top: 15px;
  display: block;
  color: #007bff;
  text-decoration: none;
}
.back-login:hover {
  text-decoration: underline;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.modal-close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.modal-close-btn:hover {
  background-color: #0056b3;
}
