/* src/styles/auth.css */
.auth-modal {
  position: fixed;
  top: 48px; /* Match header height */
  right: 15%;
  z-index: 9999;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  animation: slideIn 0.2s ease-out;
  min-width: 250px;
  max-width: 300px;
}

.auth-container {
  padding: 12px;
}

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

.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.auth-tab.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.save-management {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.auth-button {
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.auth-button:disabled {
  background: #999;
  cursor: not-allowed;
}

.auth-button.secondary {
  background: white;
  border: 1px solid #ddd;
  color: #3b82f6;
}

.auth-button.secondary:hover {
  border-color: #999;
  color: #333;
}

.auth-error {
  padding: 8px;
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #dc2626;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 12px;
}

.auth-logged-in {
  margin-bottom: 8px;
}

.auth-logged-in p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #000;
}

.file-input-wrapper {
  margin-top: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-toggle-button {
  padding: 4px 8px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  font-size: 12px;
}

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