body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
}

.card {
  width: 90%;
  max-width: 520px;
  padding: 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 8px;
}

.subtitle {
  margin: 0 0 24px;
  color: #64748b;
}

form,
.result {
  display: flex;
  gap: 8px;
}

input {
  flex: 1;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

button {
  padding: 10px 18px;
  font-size: 16px;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #94a3b8;
  cursor: default;
}

.result {
  margin-top: 20px;
}

/* Make sure the hidden attribute wins over display: flex */
[hidden] {
  display: none !important;
}

.error {
  margin: 16px 0 0;
  color: #dc2626;
}
