@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

/* 🔹 General Page Styling */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: url("../Assets/Pictures/Asset 1.png") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: white;
  animation: fadeIn 1s ease-in-out;
}

/* 🔹 Dropdown Styling */
.selectDepartment {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  width: 60%;
  max-width: 300px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.selectDepartment:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.selectDepartment:hover {
  transform: scale(1.05);
}

.selectDepartment option {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
}

/* 🔹 Home Button */
#homeButton {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

#homeButton button {
  width: 220px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ffffff, #cccccc);
  color: black;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#homeButton button:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* 🔹 Register Container with Glassmorphism */
.register-container {
  height: 800px;
  width: 400px;
  border-radius: 15px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: rgba(82, 81, 81, 0.288);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);

  animation: slideIn 0.5s ease-in-out;
}



/* 🔹 Headings */
h1, h2, h3 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 🔹 Form Styling */
#registerForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#registerCode::-webkit-inner-spin-button,
#registerCode::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#registerCode {
    -moz-appearance: textfield;
}

/* 🔹 Input Fields */
input {
  height: 37px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input:focus {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

/* 🔹 Buttons */
button {
  height: 55px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ff4e50, #982a2a);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

button:hover {
  background: linear-gradient(135deg, #e44d26, #721e1e);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* 🔹 Popup Modal */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.popup-content button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.popup-content button:hover {
  background-color: #e60000;
  transform: scale(1.1);
}

/* 🔹 Keyframe Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateY(-50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* 🔹 Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 10px;
    height: auto;
    min-height: 100vh;
    background-size: cover;
  }

  .register-container {
    width: 90%;
    height: auto;
    padding: 20px;
    margin: 20px 0;
  }

  input, .selectDepartment {
    width: 80%;
  }

  h1, h2, h3 {
    font-size: 1.4em;
  }

  button, #homeButton button {
    width: 90%;
  }

  #homeButton {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 20px;
  }

  .popup-content {
    width: 90%;
  }
}
