body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding: 20px;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

h1 {
  text-align: center;
  color: #111;
  border-bottom: 2px solid #eee;
  padding-bottom: 16px;
  margin-top: 0;
}

h2 {
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

#auth-form {
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-column {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box; /* Important for padding to work well */
  margin-bottom: 16px;
  font-size: 1rem;
}

button[type="submit"] {
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #005ecb;
}

button[type="submit"]:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.response-area {
  margin-top: 24px;
}

pre {
  background-color: #2d2d2d;
  color: #f1f1f1;
  padding: 16px;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap; /* Allows long lines to wrap */
  word-wrap: break-word;
}

#status-message {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 500;
}

.status-loading { background-color: #e0e0e0; }
.status-success { background-color: #d4edda; color: #155724; }
.status-error { background-color: #f8d7da; color: #721c24; }