@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.bg-main {
  background-color: #fff;
  margin: 5% 30% 1% 30%;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}

/* --- NEW: Role Selection Buttons --- */
.role-selection {
  display: flex;
  gap: 15px; /* Space between buttons */
  width: 100%;
  margin-bottom: 30px; /* Space above LOGIN text */
}

.role-btn {
  flex-grow: 1; /* Make buttons share the width equally */
  background-color: transparent;
  border: 1px solid #30e5c9;
  color: #30e5c9;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.role-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.role-btn.active {
  border-color: #30e5c9; /* Active border color from the image */
  color: #30e5c9;
  font-weight: 600;
}

.login-container {
  width: 350px;
  margin: 5% auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: "Poppins", sans-serif;
  z-index: 1;
}

.logo {
  width: 120px;
  margin-bottom: 20px;
}

.login-container h2 {
  margin-bottom: 30px;
  color: #222;
  font-weight: 600;
}

form label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  margin-top: 15px;
  font-weight: 500;
}

form input[type="email"],
form input[type="text"],
form input[type="password"] {
  width: 90%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 25px;
}

.options a {
  text-decoration: none;
  color: #777;
}

.sign-in-btn {
  background-color: #ff00b3;
  color: #fff;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sign-in-btn:hover {
  background-color: #e60094;
}

.google-btn {
  background-color: #555555;
  color: #fff;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.google-btn:hover {
  background-color: #e43137;
}

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}

.content {
  position: fixed;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
}

.text_label{
font-family: "IBM Plex Sans Thai", sans-serif;
}

@media screen and (max-width: 768px) {
  .login-container {
    width: 70%;
    margin: 15% auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: "Poppins", sans-serif;
    z-index: 1;
  }

  /* --- NEW: Role Selection Buttons --- */
  .role-selection {
    display: flex;
    gap: 15px; /* Space between buttons */
    width: 100%;
    margin-bottom: 30px; /* Space above LOGIN text */
  }

  .role-btn {
    flex-grow: 1; /* Make buttons share the width equally */
    background-color: transparent;
    border: 1px solid #30e5c9;
    color: #30e5c9;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .role-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .role-btn.active {
    border-color: #30e5c9; /* Active border color from the image */
    color: #fff;
    font-weight: 600;
        background: #30e5c9;
  }
}
