* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f8faff;
  color: #111;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.signup-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* LEFT FORM */
.signup-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
   background: url('../img/abstract_lines_transparent\ busy.png') center/cover no-repeat;
}

.signup-box {
  width: 90%;
  max-width: 400px;
  padding: 50px;
  background: #f1f5fa;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-top: 80px;

  transform: translateY(40px);
  opacity: 0;
  animation: slideIn 1s ease-out forwards;
  animation-delay: 0.3s;
}



@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  width: 80px;
  margin-bottom: 30px;
}

.signup-box h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #111;
}

.signup-box p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
}

form input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: #e6eefc;
  color: #111;
  font-size: 0.95rem;
}

form input:focus {
  outline: 2px solid #0070f3;
  background: #e0ebff;
}

form button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: linear-gradient(135deg, #0040ff, #2f8dff);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#signupBtn:hover {
  background: linear-gradient(135deg, #0040ff, #2f8dff);
}

.signup-note {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

.signup-note a {
  color: #2f8dff;
  text-decoration: none;
}

/* RIGHT VISUAL PANEL */
.signup-right {
  flex: 1.2;
  position: relative;
  background: url('../img/log\ in\ picture-right.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.signup-illustration {
  width: 60%;
  max-width: 400px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.9);
  animation: appear 1s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.signup-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0066ff, #21a1ff);
  opacity: 0.25;
  animation: float 12s ease-in-out infinite alternate;
}

.b1 { width: 200px; height: 200px; top: 12%; left: 10%; }
.b2 { width: 120px; height: 120px; top: 70%; left: 5%; }
.b3 { width: 280px; height: 280px; top: 25%; left: 65%; }
.b4 { width: 90px; height: 90px; top: 80%; left: 75%; }

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0040ff;
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, bottom 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  bottom: 50px;
}


@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-20px); }
}

@media (max-width: 768px) {
  .signup-container {
    flex-direction: column;
  }

  .signup-right {
    display: none;
  }

  .signup-left {
    flex: none;
    width: 100%;
    padding: 20px;
  }
 
}

body.dark-mode {
  background: #1a1a1a;
  color: #f1f5fa;
}

body.dark-mode .signup-left {
  background: url('../img/abstract_lines_transparent\ busy\ \(white\).png') center/cover no-repeat;
}

body.dark-mode .signup-box {

    background: transparent;
    backdrop-filter: blur(50px);
    opacity: 0.5;
  
}

body.dark-mode .signup-box h2 {
  color: #f4f6f8;
}

body.dark-mode .signup-box p,
body.dark-mode .signup-note {
  color: #f1f4f7;
}

body.dark-mode form input {
  background: #181c2a;
    color: #f1f5fa;
    border-color: #2d37ee solid 1px;
}

body.dark-mode form input:focus {
  background: #0d0d0e;
  border-color: #44aaff;
}

body.dark-mode form button {
  
  color: #fff;
}

body.dark-mode form button:hover {
  
  color: #181c2a;
}

body.dark-mode .signup-note a {
  color: #44aaff;
}

body.dark-mode .signup-right {
  background: url('../img/log in picture-right.jpg') center/cover no-repeat;
}

body.dark-mode .bubble {
  background: radial-gradient(circle at center, #2d37ee, #44aaff);
  opacity: 0.18;
}

body.dark-mode .toast {
  background: #2d37ee;
  color: #fff;
}


.signup-password-container {
  position: relative;
  display: flex; /* Add flex to align items */
  align-items: center; /* Vertically center the icon */
}

.signup-password-container input {
  padding-right: 30px; /* Make space for the toggle button */
}

.signup-password-toggle {
  position: absolute;
  left: 165px; /* Adjust for better spacing */
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s;
  outline: none; /* Remove the grey container */
  padding: 0;
}
body.dark-mode #togglePassword{
  background: transparent;
  color: white;

}
body.dark-mode #toggleConfirmPassword{
  background: transparent;
  color: white;

}
.signup-password-toggle:hover {
  color: #0070f3;
}

.signup-password-toggle i {
  pointer-events: none; /* Prevent icon from interfering with button click */
}

#toggleConfirmPassword {
  background: transparent;
  width: 10px;
  position: absolute;
    right: 1%;
    left: 90%;
    top: 52%;
    padding: 0;
    margin: 0;
}

#togglePassword {
  background: transparent;
  color: rgb(87, 87, 87);
      position: absolute;
    right: 1%;
    left: 90%;
    top: 52%;
    padding: 0;
    margin: 0;
    width: 10px;
}




#togglePassword:hover {
background-color: transparent;
}

#toggleConfirmPassword:hover {
background-color: transparent;
}
