/* Accounts: avatar, the header account link, and the forms on /inloggen/,
   /registreren/ and /profiel/. Built only from the tokens in denkplein.css. */

/* ---- Avatar ---- */
.dp-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--kobalt-soft); color: var(--kobalt); font-family: var(--font-display); font-weight: 600; overflow: hidden; }
.dp-avatar-sm { width: 28px; height: 28px; font-size: 14px; }
.dp-avatar-lg { width: 96px; height: 96px; font-size: 44px; letter-spacing: -0.02em; }

/* ---- Header account link (home page and account pages) ---- */
.dp-account { display: inline-flex; align-items: center; gap: var(--space-2); height: 34px; padding: 0 var(--space-3); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.dp-account:hover { background: var(--surface-sunken); }
.dp-account:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dp-account svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dp-account .dp-avatar-sm { margin-left: calc(-1 * var(--space-1)); }
.dp-account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.dp-account[hidden] { display: none; }
/* Small screens: the photo stands for the account, the person icon for "Inloggen". */
@media (max-width: 640px) { .dp-account-name { display: none; } }
@media (max-width: 420px) { .dp-account { padding: 0 var(--space-2); } .dp-account > span:not(.dp-avatar) { display: none; } }
/* In a game's icon row (.icon is the game's own 40px button style). */
.icon[data-dp-account] { text-decoration: none; }
.icon[data-dp-account] .dp-avatar-sm { width: 26px; height: 26px; }

/* ---- Forms ---- */
.dp-form { display: grid; gap: var(--space-5); }
.dp-field { display: grid; gap: var(--space-2); }
.dp-label { font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink); }
.dp-hint { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.dp-input { font: inherit; font-size: 16px; line-height: 24px; height: 48px; width: 100%; box-sizing: border-box; padding: 0 var(--space-4); border: var(--border-hair) solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); transition: border-color 120ms ease, box-shadow 120ms ease; }
.dp-input::placeholder { color: var(--ink-muted); }
.dp-input:focus { outline: none; border-color: var(--kobalt); box-shadow: 0 0 0 3px var(--kobalt-soft); }
.dp-input[aria-invalid="true"] { border-color: var(--fout); }
.dp-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--fout-soft); }
.dp-field-error { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--fout); }
.dp-field-error:empty { display: none; }
.dp-alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; font-weight: 600; }
.dp-alert[hidden] { display: none; }
.dp-alert-fout { background: var(--fout-soft); color: var(--fout); }
.dp-alert-ok { background: var(--munt-soft); color: var(--munt); }
.dp-form .dp-btn-primary { justify-content: center; width: 100%; height: 48px; }
@media (prefers-reduced-motion: reduce) { .dp-input { transition: none; } }

/* ---- Account page layout ---- */
.acct { max-width: 440px; margin: 0 auto; padding: var(--space-4) 0 var(--space-12); }
.acct h1 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.acct-lead { margin: 0 0 var(--space-8); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.acct-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: var(--border-hair) solid var(--line); box-shadow: var(--shadow-soft); }
.acct-switch { margin: var(--space-6) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; }
.acct-switch a, .acct-note a { color: var(--kobalt); font-weight: 700; }
.acct-note { margin: var(--space-4) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
