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

body {
  font-family: system-ui, sans-serif;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.3rem;
}

input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="password"]:focus {
  border-color: #6366f1;
}

button {
  width: 100%;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #4f46e5;
}

.error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
