* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f0f5;
  color: #241e2e;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.login-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid #ddd7e4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(36 30 46 / 10%);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #5b3f72;
  color: #fff;
  font-size: 28px;
}
h1 { margin: 0; font-size: 1.5rem; }
p { margin: 8px 0 24px; color: #655d72; }
form { display: grid; gap: 8px; }
label { margin-top: 8px; font-size: .9rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9b2c1;
  border-radius: 10px;
  background: #fff;
  color: #241e2e;
  font: inherit;
}
input:focus-visible, button:focus-visible { outline: 3px solid #8a5cb0; outline-offset: 2px; }
button {
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: #5b3f72;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #48315c; }
small { display: block; margin-top: 20px; color: #655d72; line-height: 1.5; }
.login-error { margin: 16px 0 8px; padding: 10px 12px; border-radius: 8px; background: #fae9e8; color: #842d31; }
