.signup-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.signup-page {
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, #6b48ff 0%, #00ddeb 100%);
  font-family: 'Poppins', sans-serif;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background: linear-gradient(90deg, #6b48ff 0%, #00ddeb 100%); }
  50% { background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 100%); }
  100% { background: linear-gradient(90deg, #6b48ff 0%, #00ddeb 100%); }
}

.signup-page .signup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.signup-page .signup-card {
  display: flex;
  background: rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1000px;
  padding: 40px 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  animation: pulse 1.5s ease-in-out 1;
  /*min-height: 500px;  Stabilize card height */
}

@media (max-width: 768px) {
  .signup-page .signup-card {
    flex-direction: column;
    padding: 20px;
    min-height: 600px; /* Adjusted for mobile */
  }
}

.signup-page .left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  margin-top: -40px;
}

.signup-page .left img {
  width: 80px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  margin-bottom: 20px;
}

.signup-page .left h1 {
  font-size: clamp(32px, 4vw, 36px);
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}

.signup-page .left p {
  font-size: clamp(16px, 2.5vw, 18px);
  color: rgb(0, 0, 0);
  line-height: 1.6;
  margin: 0;
}

.signup-page .right {
  flex: 1;
  padding-left: 40px;
  z-index: 1;
}

@media (max-width: 768px) {
  .signup-page .right {
    padding-left: 0;
    margin-top: 20px;
  }

  .signup-page .left {
    margin-top: 0px;
  }
}

.signup-page .signup-form-group .input-container {
  position: relative;
  margin: 0px 0;
}

.signup-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.signup-form-row .password-criteria,
.signup-form-row .signup-form-group {
  flex: 1;
  min-width: 0;
}

.signup-page .signup-form-group {
  margin-bottom: 20px;
}

.signup-page .signup-form-group input,
.signup-page .signup-form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: clamp(14px, 2.5vw, 16px);
  border: 1px solid black;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.signup-page .signup-form-group input:focus,
.signup-page .signup-form-group select:focus {
  border: 2px solid #0957D0;
  background: rgb(255, 255, 255);
  box-shadow: 0 0 8px rgba(0, 159, 253, 0.5);
  outline: none;
  padding: 9px 13px; /* Adjust padding to compensate for thicker border */
}

.signup-page .signup-form-group select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 14px center;
  transition: background-image 0.3s ease;
}

.signup-page .signup-form-group select:focus {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8.753 4.86l4.796 5.48c.566.645.106 1.658-.753 1.658H3.204a1 1 0 0 1-.753-1.659l4.796-5.48a1 1 0 0 1 1.506 0z'/%3E%3C/svg%3E") no-repeat right 14px center rgba(255, 255, 255, 0.1);
}

.signup-page .signup-form-group .floating-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(13px, 2.5vw, 14px);
  color: #000000;
  pointer-events: none;
  transition: all 0.3s ease;
  opacity: 1;
  background: transparent;
}

.signup-page .signup-form-group input:focus + .floating-label,
.signup-page .signup-form-group input:not(:placeholder-shown) + .floating-label,
.signup-page .signup-form-group select:focus + .floating-label,
.signup-page .signup-form-group select.filled + .floating-label {
  top: -10px; /* Move label above input to avoid layout shift */
  font-size: clamp(12px, 2vw, 13px);
  color: #0957D0;
  background: rgba(255, 255, 255, 1);
  padding: 0 5px;
  transform: none; /* Remove translateY to stabilize position */
  opacity: 1;
}

.signup-page .signup-form-group a {
  color: #0957D0;
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px 6px;
  transition: color 0.3s ease;
}

.signup-page .signup-form-group a:hover {
  color: #2a2a72;
  background: rgba(68, 68, 68, 0.1);
}

.signup-page .signup-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.signup-page .signup-buttons a {
  font-size: clamp(15px, 2vw, 16px);
  padding: 4px 6px;
  border-radius: 8px;
  color: #0957D0;
  text-decoration: none;
  font-weight: 500;
}

.signup-page .signup-buttons a:hover {
  color: #2a2a72;
  background: rgba(68, 68, 68, 0.1);
}

.signup-page .sign-icon {
  top: 10%;
  left: 10%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 5px;
  color: #333;
  z-index: 10;
}

.signup-page .sign-icon:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(1.2);
  color: #007bff;
}

.icon-tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  position: absolute;
  z-index: 1;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 10px;
}

.signup-page .sign-icon:hover .icon-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.signup-page .btn-next {
  background: linear-gradient(45deg, #009ffd, #2a2a72);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.signup-page .btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 159, 253, 0.5), 0 0 15px rgba(0, 159, 253, 0.3);
  background: linear-gradient(45deg, #00ddeb, #3b3b98);
}

.signup-page .btn-next:disabled {
  background: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

.signup-page .page-footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(12px, 2vw, 14px);
  color: #ffffff;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 480px) {
  .signup-page .page-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.signup-page .footer-links a {
  padding: 5px 10px;
  border-radius: 8px;
  margin-left: 0;
  text-decoration: none;
  color: #ffffff;
  opacity: 1;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.signup-page .footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.signup-page .language-select-wrapper {
  display: inline-block;
  position: relative;
  padding: 2px;
  margin-left: -4px;
}

.signup-page .btn-group {
  width: fit-content;
  min-width: 180px;
}

.signup-page .btn-danger.dropdown-toggle {
  background-color: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: clamp(12px, 2vw, 14px);
  padding: 5px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  position: relative;
  max-width: 180px;
}

.signup-page .btn-danger.dropdown-toggle::after {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.signup-page .btn-danger.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.signup-page .btn-danger.dropdown-toggle:focus,
.signup-page .btn-danger.dropdown-toggle:active {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #009ffd;
  box-shadow: 0 0 8px rgba(0, 159, 253, 1);
  outline: none;
}

.signup-page .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
}

@media (max-width: 480px) {
  .signup-page .dropdown-menu {
    min-width: 100px;
  }
}

.signup-page .dropdown-item {
  color: #4a4a4a;
  font-size: clamp(12px, 2vw, 14px);
  padding: 8px 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.signup-page .dropdown-item:hover {
  background-color: rgba(0, 159, 253, 0.1);
  color: #009ffd;
}

.signup-page .dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .signup-page .btn-group {
    min-width: 100%;
  }
}

.password-criteria {
  margin-top: 10px;
  font-size: clamp(12px, 2vw, 14px);
}

.criteria-item {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.criteria-item .checkmark {
  margin-right: 5px;
  font-size: 14px;
}

.criteria-item.invalid {
  color: red;
}

.criteria-item.valid {
  color: green;
}
