/* ==== LOGIN PAGE - SPACE THEME ==== */

.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4d 50%, #2a0a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animated Background Stars */
.stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.stars::before {
  content: '';
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    10vw 20vh 0 0 #fff,
    30vw 70vh 0 0 #fff,
    80vw 10vh 0 0 #fff,
    50vw 90vh 0 0 #fff,
    90vw 50vh 0 0 #fff,
    20vw 40vh 0 0 #fff,
    70vw 80vh 0 0 #fff,
    40vw 30vh 0 0 #fff;
  animation: twinkle 4s infinite alternate;
}

.stars-md::before { width: 3px; height: 3px; animation-duration: 5s; }
.stars-lg::before { width: 4px; height: 4px; animation-duration: 6s; }

@keyframes twinkle {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.4); }
}

/* Subtle Nebula Glow */
.login-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 50, 200, 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(50, 150, 255, 0.15), transparent 50%);
  animation: nebula 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes nebula {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(10px) translateY(-10px); }
}

/* Glassmorphism Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 35px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
  position: relative;
  z-index: 10;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  background: linear-gradient(90deg, #00ddeb, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card .subtitle {
  margin-bottom: 30px;
  opacity: 0.8;
  font-size: 14px;
}

/* Form Styling */
.login-form p {
  margin: 0 0 16px;
  text-align: left;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-form input:focus {
  border-color: #00ddeb;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 221, 235, 0.2);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #00ddeb, #ff6ec7);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 221, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 221, 235, 0.4);
}

/* Divider */
.divider {
  position: relative;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  background: rgba(10, 10, 46, 0.8);
  padding: 0 12px;
}

/* Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: white;
  color: black !important;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  height: 20px;
}

.google-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Links */
.links {
  margin-top: 24px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.links a {
  color: #00ddeb;
  text-decoration: none;
  font-weight: 500;
}

.links a:hover {
  text-decoration: underline;
}

/* Alert */
.alert-error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 10px;
  color: #ff6b6b;
  font-size: 14px;
  text-align: left;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 25px;
    border-radius: 16px;
  }
  .login-card h2 { font-size: 24px; }
}
/* ==== SIGN-UP PAGE - MATCHES LOGIN ==== */

.signup-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4d 50%, #2a0a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reuse same stars & nebula from login */
.signup-container .stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.signup-container .stars-md::before { animation-duration: 5s; }
.signup-container .stars-lg::before { animation-duration: 6s; }

.signup-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 50, 200, 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(50, 150, 255, 0.15), transparent 50%);
  animation: nebula 20s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Glass Card */
.signup-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 35px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
  position: relative;
  z-index: 10;
}

.signup-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  background: linear-gradient(90deg, #00ddeb, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-card .subtitle {
  margin-bottom: 30px;
  opacity: 0.8;
  font-size: 14px;
}

/* Form Styling */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
  border-color: #00ddeb;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 221, 235, 0.2);
}

.help-text {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.error-text {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 4px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #00ddeb, #ff6ec7);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 221, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 221, 235, 0.4);
}

/* Divider */
.divider {
  position: relative;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  background: rgba(10, 10, 46, 0.8);
  padding: 0 12px;
}

/* Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: white;
  color: #333;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  height: 20px;
}

.google-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Login Link */
.login-link {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.login-link a {
  color: #00ddeb;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .signup-card {
    padding: 30px 25px;
  }
  .signup-card h2 { font-size: 24px; }
}