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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #0f172a;
}

.card {
  width: min(92vw, 420px);
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}

form {
  display: flex;
  gap: 0.5rem;
}

input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

input:focus {
  border-color: #2563eb;
}

button {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  background: #1d4ed8;
}

.error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #dc2626;
  min-height: 1.2em;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #f8fafc;
  }

  .card {
    background: #1e293b;
    border-color: #334155;
  }

  input {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
  }
}
