/* Importing Google Fonts - Poppins and Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #000000, #121212); /* เพิ่ม background gradient */
}



.container {
  max-width: 700px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.container .title {
  font-size: 26px;
  font-weight: 600;
  position: relative;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

/* .container .title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  height: 3px;
  width: 40px;
  background: linear-gradient(135deg, #000000, #b30c0c);
  border-radius: 5px;
} */

.content form {
  width: 100%;
}

form .user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0 12px 0;
}

form .user-details .input-box {
  margin-bottom: 15px;
  border-bottom: 2px solid #ccc;

  width: calc(50% - 20px);
}

form .input-box span.details {
  display: block;
  font-weight: 500;
    border-bottom: 2px solid #ccc;

  color: #fff;
  margin-bottom: 5px;
}

.user-details .input-box input {
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
}



form .gender-details .gender-title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  
}


#dot-1:checked~.category label .one,
#dot-2:checked~.category label .two,
#dot-3:checked~.category label .three {
  background: #670707;
  border-color: #d9d9d9;
}

form input[type="radio"] {
  display: none;
    width: 100%;
    margin-top: 20px

}

.form-check-container {
  
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 10px;
  background-color: rgba(51, 20, 20, 0.1);
  border-radius: 10px;
  
}

.form-check-label {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background-color: #1e1e1e;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  
}

.form-check-input:checked + .form-check-label {
  background-color: #f8f6f6;
  color: #000000;
  border-color: #ffffff;
  
}

.form-check-label:hover {
  background-color: #000000ee;
}

button {
  margin-top: 20px;
  background: #fff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: 0.3s ease;
  width: 100%;
 
}

button:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.register {
  text-align: center;
  margin-top: 20px;
  width: 100%; /* ขยาย .register ให้เต็ม */
  display: flex; /* ใช้ flexbox เพื่อจัดการ layout */
  justify-content: center; /* จัดตำแหน่งลิงก์ตรงกลาง */
}

.register a {
  text-decoration: none; /* เอาเส้นใต้ลิงก์ออก */
  background: #000000; /* พื้นหลังสีขาว */
  color: #ffffff; /* สีตัวอักษร */
  font-weight: 600; /* ตัวอักษรหนา */
  border: none; /* ไม่มีขอบ */
  padding: 12px 20px; /* ขยายพื้นที่ภายในลิงก์ */
  cursor: pointer; /* เปลี่ยนเคอร์เซอร์ */
  border-radius: 3px; /* มุมโค้ง */
  font-size: 16px; /* ขนาดตัวอักษร */
  border: 2px solid transparent; /* ขอบโปร่ง */
  transition: 0.3s ease; /* เพิ่มเอฟเฟกต์ */
  width: 100%; /* ขยายลิงก์ให้เต็มพื้นที่ */
  max-width: 700px; /* กำหนดขนาดสูงสุด */
  text-align: center; /* จัดข้อความให้อยู่ตรงกลาง */
}

/* เพิ่ม hover effect */
.register a:hover {
  color: #000000; /* เปลี่ยนสีตัวอักษร */
  border-color: #fff; /* ขอบสีขาว */
  background: rgb(255, 255, 255); /* พื้นหลังโปร่งใส */
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 0, 0, 0.8); /* Red background for alert */
  border: 1px solid rgba(255, 0, 0, 0.7);
  backdrop-filter: blur(5px); /* Slight blur effect for glassmorphism */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
}

/* Alert styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 0, 0, 0.8); /* Red background for alert */
  border: 1px solid rgba(255, 0, 0, 0.7);
  backdrop-filter: blur(5px); /* Slight blur effect for glassmorphism */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
}

/* Optional: If you want to add more distinctive style to the danger alert */
.alert-danger {
  background-color: rgba(255, 0, 0, 0.8); /* Red color */
  border-color: rgba(255, 0, 0, 0.7); /* Border to match the background */
}





@media(max-width: 584px) {
  .container {
    max-width: 100%;
  }
  form .user-details .input-box {
    width: 100%;
  }
  form .category {
    width: 100%;
  }
}

@media(max-width: 459px) {
  .container .content .category {
    flex-direction: column;
  }
}
