/* Auth Modal Styles */
.auth-buttons {
  display: flex;
  gap: 15px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.auth-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #ba4df5;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: rgba(103, 58, 183, 0.2);
}

.signup-btn {
  background-color: #ba4df5;
}

.signup-btn:hover {
  background-color: #5e35b1;
  transform: scale(1.05);
}

/* Modal */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  background-color: #1a1a1a;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(103, 58, 183, 0.3);
  position: relative;
  padding: 25px;
  overflow: hidden;
  animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  color: #ba4df5;
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-close:hover {
  color: #b39ddb;
}

/* Tabs */
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.auth-tab-btn {
  flex: 1;
  background-color: transparent;
  border: none;
  color: #999;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.auth-tab-btn.active {
  color: #ba4df5;
  border-bottom: 3px solid #ba4df5;
  font-weight: bold;
}

.auth-tab-content {
  padding: 10px 0;
}

.auth-tab-content h2 {
  text-align: center;
  color: #ba4df5;
  margin-bottom: 25px;
  font-size: 24px;
}

/* Form */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #222;
  color: white;
  transition: all 0.3s ease;
}

.auth-form-group input:focus {
  border-color: #ba4df5;
  box-shadow: 0 0 8px rgba(103, 58, 183, 0.5);
  outline: none;
}

.auth-form-checkbox {
  display: flex;
  align-items: center;
}

.auth-form-checkbox input {
  margin-right: 10px;
}

.auth-submit-btn {
  width: 100%;
  background-color: #ba4df5;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(103, 58, 183, 0.3);
}

.auth-submit-btn:hover {
  background-color: #5e35b1;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(103, 58, 183, 0.4);
}

/* Error message styling */
.auth-error {
  background-color: #ff3333;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Loading overlay */
.auth-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  justify-content: center;
  align-items: center;
}

.auth-loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(103, 58, 183, 0.3);
  border-radius: 50%;
  border-top-color: #ba4df5;
  animation: auth-spin 1s ease-in-out infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* Modal style fixes */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  background-color: #1a1a1a;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-close:hover {
  color: #ba4df5;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.auth-forgot-password {
  margin-left: auto;
  color: #ba4df5;
  text-decoration: none;
  font-size: 14px;
}

.auth-forgot-password:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-modal-content {
    width: 95%;
    padding: 20px;
  }
  
  .auth-buttons {
    position: static;
    justify-content: center;
    margin-top: 10px;
    transform: none;
  }
  
  header {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .logo {
    margin-bottom: 10px;
  }
}

/* Login Required Popup Styles */
.login-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-popup-content {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #ba4df5;
}

.login-popup h2 {
  color: #ba4df5;
  margin-bottom: 15px;
  font-family: 'Karla', 'Montserrat', sans-serif;
}

.login-popup p {
  margin-bottom: 25px;
  color: #fff;
  font-family: 'Karla', 'Montserrat', sans-serif;
}

.login-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.login-popup-close:hover {
  color: #fff;
}

.popup-login-btn {
  background-color: #ba4df5;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Karla', 'Montserrat', sans-serif;
}

.popup-login-btn:hover {
  background-color: #a23ed8;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(186, 77, 245, 0.4);
}

/* Button Styles */
.auth-btn {
  margin-left: 10px;
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn {
  background-color: #ba4df5;
  color: white;
}

.login-btn:hover {
  background-color: #a23ed8;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(186, 77, 245, 0.3);
}

.signup-btn {
  background-color: transparent;
  color: white;
  border: 2px solid #ba4df5;
}

.signup-btn:hover {
  background-color: rgba(186, 77, 245, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(186, 77, 245, 0.2);
}

.account-btn {
  background-color: #ba4df5;
  color: white;
}

.account-btn:hover {
  background-color: #a23ed8;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(186, 77, 245, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .auth-btn {
    padding: 6px 15px;
    font-size: 13px;
  }
}