:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: light-dark(#f5f5f4, #1a1a1a);
  color: light-dark(#1a1a1a, #f0f0f0);
}

.page {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 480px;
  background: light-dark(#ffffff, #262626);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.card > p {
  margin: 0;
  opacity: 0.8;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid light-dark(#d4d4d4, #444);
  background: light-dark(#ffffff, #1a1a1a);
  color: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: light-dark(#fee2e2, #451a1a);
  color: light-dark(#991b1b, #fca5a5);
  font-size: 0.875rem;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #6366f1;
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #4f46e5;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
