*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: linear-gradient(160deg, #e8eef5 0%, #f5f0e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 650;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #334155;
}

input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}

input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
  border-color: #93c5fd;
}

button {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #16a34a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #15803d;
}

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

.message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.message.message--in {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #34d399;
}

.message.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

.message[hidden] {
  display: none;
}
