.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem;
}

.loaderContainer, .errorContainer {
  text-align: center;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loginForm {
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
}

.loginForm h1 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--timestamp-color);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-style: italic;
}

.description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.inputGroup {
  display: flex;
  margin-bottom: 1rem;
}

.inputWithSuggestions {
  flex: 1;
  position: relative;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  background-color: var(--input-background);
  color: var(--text-color);
}

.input:focus {
  outline: none;
  border-color: var(--input-focus-border);
}

/* Suggestions styling */
.suggestionsContainer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background-color: var(--card-background);
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
}

.suggestionsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestionItem {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--tile-border);
}

.suggestionItem:last-child {
  border-bottom: none;
}

.suggestionButton {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--text-color);
  gap: 10px;
}

.suggestionButton:hover {
  background-color: var(--button-hover);
  /* No transform animation */
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.avatarPlaceholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.3;
}

.handle {
  font-size: 0.9rem;
  color: var(--link-color);
}

.noResults {
  padding: 1rem;
  text-align: center;
  color: var(--timestamp-color);
  font-style: italic;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  padding: 1rem;
  gap: 0.3rem;
}

.loadingDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  animation: dotPulse 1.4s infinite ease-in-out;
}

.loadingDot:nth-child(2) {
  animation-delay: 0.2s;
}

.loadingDot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% { 
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

.loginButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.loginButton:hover:not(:disabled) {
  background-color: var(--secondary-color);
}

.loginButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.helpText {
  color: var(--timestamp-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.error {
  color: var(--error-color);
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: #ffebee;
  border-radius: 4px;
  text-align: left;
}

.backButton {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  margin-top: 1.5rem;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  .loginForm {
    padding: 1.5rem;
  }
  
  .inputGroup {
    flex-direction: column;
  }
  
  .inputWithSuggestions {
    margin-bottom: 0.5rem;
  }
  
  .input {
    border-right: 1px solid var(--input-border);
    border-radius: 4px;
  }
  
  .loginButton {
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
  }
  
  .suggestionsContainer {
    width: 100%;
  }
}