.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 1000;
}

.section-header {
  width: 90%;
  margin: 10px auto;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 0.85rem;
  font-weight: light;
  color: #343431;
  text-align: center;
  align-items: center;
  margin: auto;
  padding: 0 10px;
}

/* Divider styling */
.section-divider {
  flex-grow: 1;
  border-radius: 10px;
  border: 1px solid #a79e9e;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ededed;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease-in-out;
}

.modal-content.show {
  transform: scale(1);
}

.closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  background: transparent;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 40px;
  color: #ff4d4f;
  transition: background 0.3s ease;
}

#toggle-password {
  color: #333;
  /* Dark color for the eye icon */
  transition: color 0.3s ease;
}

#toggle-password:hover {
  color: #000;
  /* Slightly darker color on hover */
}

.closeBtn:hover {
  background: #ff4d4f;
  color: #ffffff;
}

/* Error Message Styles */
.error-message {
  color: #ff4d4f;
  text-align: right;
  font-size: 13px;
  margin-right: 10px;
  top: 0px;
}

/* Form Container Styles */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.form-container input {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  width: 100%;
  min-width: 200px;
}
.form-container select {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  width: 100%;
  max-width: 200px;
  min-width: 50px;
}

.form-container input:focus {
  border-color: #007BFF;
  outline: none;
}

#email {
  width: 50%;
}

.name {
  width: 100%;
  gap: 2px;
  display: flex;
}

#email {
  flex-grow: 1;
}

/* Button Styles */
.form-container button {
  padding: 12px;
  background-color: #007BFF;
  margin-top: 15px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.form-container button:hover {
  background-color: #0056b3;
}

.form-container #cancel-button {
  padding: 12px;
  background-color: #b4b1b1;
  margin-top: 15px;
  color: rgb(16, 16, 16);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 50%;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.form-container #cancel-button:hover {
  background-color: #656565;
}

.form-container #forgot-password {
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  color: #007BFF;
}

.hidden {
  display: none;
}

.form-container #forgot-password:hover {
  color: #0056b3;
}

.form-container p {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  color: #333;
}

.form-container a {
  text-decoration: none;
  color: #007BFF;
  transition: color 0.3s ease;
}

.form-container a:hover {
  color: #0056b3;
  text-decoration: underline;
}



/* Checkbox Styles */
.checkbox {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox input {
  margin-right: 8px;
}

/* Slide-in Animation */
.form-container.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}