/* Login page styling to match the about page card-like sections */

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--foreground-rgb);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loginBox {
  background-color: var(--card-background);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--tile-border);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-top: 0;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--secondary-foreground);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.form {
  margin-bottom: 2rem;
}

.inputGroup {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground-rgb);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: var(--input-background);
  color: var(--text-color);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-foreground);
  margin-bottom: 0;
}

.error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.submitButton {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submitButton:hover:not(:disabled) {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.submitButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.info {
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tile-border);
}

.info h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground-rgb);
}

.info ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--secondary-foreground);
}

.info li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--tile-border);
}

.backButton {
  background: none;
  border: none;
  color: var(--link-color);
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem;
}

.backButton:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .loginBox {
    padding: 1.5rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .loginBox {
    padding: 1.25rem;
  }

  .title {
    font-size: 1.5rem;
  }
}