* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #ec4899);
  padding: 1.5rem;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: #1e293b;
}

.subtitle {
  margin: 0 0 1.75rem;
  color: #64748b;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.field input.invalid {
  border-color: #ef4444;
}

.field-error {
  display: block;
  min-height: 1.1rem;
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: #6366f1;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

button[type="submit"]:hover { background: #4f46e5; }
button[type="submit"]:active { transform: scale(0.98); }
button[type="submit"]:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

.form-message {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.form-message.success { color: #16a34a; }
.form-message.error { color: #ef4444; }
