* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f6fa;
  margin: 0;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: #1f2430;
}
.card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 380px;
}
.card h1 { font-size: 22px; margin: 0 0 4px; }
.card p.subtitle { color: #6b7280; margin: 0 0 20px; font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dae0;
  border-radius: 8px;
  font-size: 14px;
}
input:focus { outline: none; border-color: #4f46e5; }
button {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: #4338ca; }
button.secondary {
  background: transparent;
  color: #4f46e5;
  border: 1px solid #d7dae0;
  margin-top: 10px;
}
.error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.success {
  background: #f0fdf4;
  color: #15803d;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.foot { margin-top: 18px; font-size: 13px; text-align: center; color: #6b7280; }
.foot a { color: #4f46e5; text-decoration: none; font-weight: 600; }

/* Dashboard */
.dash {
  max-width: 640px;
}
.dash .top { display: flex; justify-content: space-between; align-items: center; }
.dash .top form button { width: auto; margin: 0; background: #fff; color: #b91c1c; border: 1px solid #f3caca; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat { background: #f9fafb; border-radius: 10px; padding: 16px; }
.stat .label { font-size: 12px; color: #6b7280; }
.stat .value { font-size: 18px; font-weight: 700; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid #eee; }
