* {
  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;
}

.signup-box {
  width: 90%;
  max-width: 400px;
  padding: 50px;
  background: #ffffff;
  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;
}

form button:hover {
  background: #0057ff;
}

.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); }
}

/* PASSWORD REQUIREMENTS STYLING */
.password-req {
      margin-top: 0;
      padding: 0;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 8px;
      border: 1px solid #e6eefc;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.4s ease;
      pointer-events: none;
      max-height: 0;
      overflow: hidden;
    }
.password-req.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      margin-top: 16px;
      padding: 16px;
      max-height: 300px;
    }

   .password-req p {
      font-size: 0.85rem;
      font-weight: 600;
      color: #111;
      margin-bottom: 12px;
    }

 .password-req ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }


    .password-req li {
      display: flex;
      align-items: center;
      font-size: 0.8rem;
      margin-bottom: 8px;
      color: #ef4444;
      transition: all 0.3s ease;
      transform: translateX(10px);
      opacity: 0.8;
    }

password-req li::before {
      content: "•";
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid currentColor;
      margin-right: 10px;
      font-size: 12px;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

 .password-req li.met {
      color: #10b981;
      transform: translateX(0);
      opacity: 1;
    }

    .password-req li.met::before {
      content: "✓";
      background-color: #10b981;
      border-color: #10b981;
      color: white;
      font-size: 10px;
      font-weight: bold;
    }

    .password-req li.unmet {
      color: #ef4444;
    }

@media (max-width: 768px) {
  .signup-container {
    flex-direction: column;
  }

  .signup-right {
    display: none;
  }

  .signup-left {
    flex: none;
    width: 100%;
    padding: 20px;
  }
}

/* DARK MODE STYLES */
body.dark-mode {
  background: #1a1a1a;
  color: #f1f5fa;
}

body.dark-mode .signup-left {
  background: #121212;
}

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: 1px solid #2d37ee;
}

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;
}

/* Dark mode password requirements */
body.dark-mode .password-req {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .password-req p {
  color: #f1f4f7;
}

/* PASSWORD TOGGLE STYLES */
.signup-password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.signup-password-container input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #0070f3;
}

.password-toggle:focus {
  outline: none;
}

body.dark-mode .password-toggle {
  color: #ccc;
}

body.dark-mode .password-toggle:hover {
  color: #44aaff;
}
body.dark-mode .password-req {
      background: rgba(0, 0, 0, 0.3);
      border-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .password-req p {
      color: #f1f4f7;
    }

    /* Password wrapper styles */
    .password-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .password-wrapper input {
      padding-right: 45px !important;
    }

    .toggle-password {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #666;
      font-size: 16px;
      transition: color 0.2s ease;
    }

    .toggle-password:hover {
      color: #0070f3;
    }

    body.dark-mode .toggle-password {
      color: #ccc;
    }

    body.dark-mode .toggle-password:hover {
      color: #44aaff;
    }