/* 🌌 Modern Glassmorphism Auth Popup Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Overlay */
#auth-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

/* Popup Container */
#auth-popup {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #fff;
  animation: slideUp 0.5s ease;
}

/* Header */
#auth-popup-header {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 22px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  position: relative;
}

#auth-popup-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

#auth-popup-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: 0.3s;
}

#auth-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
#auth-tabs {
  display: flex;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.auth-tab.active {
  color: #fff;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  border-radius: 2px;
}

.auth-tab:hover {
  color: #fff;
}

/* Content */
#auth-content {
  padding: 26px 28px;
}

/* Forms */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Input */
.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.auth-form .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.auth-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #6a11cb;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(106, 17, 203, 0.4);
}

/* Buttons */
.auth-form .form-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

#auth-popup-cancel,
#auth-login-submit,
#auth-signup-submit {
  padding: 11px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
  min-width: 90px;
}

#auth-popup-cancel {
  background: rgba(255, 255, 255, 0.15);
  color: #ddd;
}

#auth-popup-cancel:hover {
  background: rgba(255, 255, 255, 0.3);
}

#auth-login-submit,
#auth-signup-submit {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.4);
}

#auth-login-submit:hover,
#auth-signup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(106, 17, 203, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  #auth-popup {
    width: 92%;
    border-radius: 12px;
  }

  #auth-popup-header h2 {
    font-size: 1.4rem;
  }

  .auth-form .form-buttons {
    flex-direction: column;
  }

  #auth-popup-cancel,
  #auth-login-submit,
  #auth-signup-submit {
    width: 100%;
  }
}
