/* Shared look for the public account pages — the game's purple/lavender palette */
:root {
  --bg: #8e5fd6;
  --card: #f3eafd;
  --text: #3d2466;
  --muted: #7b62a3;
  --field: #8658d5;
  --action: #9b2218;
  --ok: #1f7a3a;
  --err: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 8px 0 #5b3a96;
}

.home-link { display: inline-block; margin-bottom: 14px; color: var(--muted); font-weight: 700; text-decoration: none; }
.home-link:hover { text-decoration: underline; }

h1 { margin: 0 0 4px; font-size: 1.9rem; }
h2 { margin: 1.6em 0 0.4em; font-size: 1.2rem; }
a { color: #6a2fc2; }
.muted { color: var(--muted); margin-top: 0; }
li { margin: 0.35em 0; }

form { display: grid; gap: 12px; margin-top: 16px; }
label { font-weight: 600; }

input {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--field);
  color: #fff;
  font: inherit;
}
input::placeholder { color: #e9dcff; }

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }

.msg:empty { display: none; }
.msg { padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.msg.ok { background: #d9f5e1; color: var(--ok); }
.msg.err { background: #fde2e0; color: var(--err); }
