/* Authentication Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.auth-modal-content {
  background: white;
  border-radius: 8px;
  padding: 0;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.auth-header {
  background: var(--primary-color, #2c5530);
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.auth-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color, #2c5530);
  box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-actions .btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-primary {
  background: var(--primary-color, #2c5530);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark, #1e3a21);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.auth-note {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #dee2e6;
}

.auth-note p {
  margin: 0;
  font-size: 12px;
  color: #6c757d;
}

/* Auth Status Indicator */
.auth-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.auth-status.authenticated {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.auth-status.unauthenticated {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-status.loading {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .auth-header {
    padding: 15px;
  }
  
  .auth-form {
    padding: 15px;
  }
  
  .form-actions {
    flex-direction: column;
  }
}