/* Auth Modal Styles */
#auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.auth-modal-content {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--primary-color);
}

.auth-modal-close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: #000;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form-group {
  margin-bottom: 15px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.auth-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(203, 36, 46, 0.2);
}

.auth-error {
  color: #e74c3c;
  font-size: 14px;
  margin-bottom: 15px;
  display: none;
  padding: 10px;
  background-color: #fadbd8;
  border-radius: 5px;
  border-left: 4px solid #e74c3c;
}

.auth-submit-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-submit-btn:hover {
  background-color: #a01f26;
}

.auth-toggle {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-color);
}

.auth-toggle-link {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.auth-toggle-link:hover {
  text-decoration: underline;
}

/* User Menu Wrapper */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 1001;
  border-radius: 5px;
  top: 100%;
  right: 0;
  margin-top: 5px;
}

.user-dropdown .dropdown-link {
  display: block;
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.2s;
}

.user-dropdown .dropdown-link:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

.user-dropdown a {
  color: inherit;
  text-decoration: none;
}

.user-menu-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.user-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#auth-nav-button {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-modal-content {
    width: 95%;
    padding: 20px;
  }
}
