/* Optional account: quiet lobby button, sign-in dialog, profile with statistics. Builds on style.css tokens. */

.account-entry { margin: 12px 0 0; }
.account-btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; color: var(--muted); border-color: var(--line); }
.account-btn:hover { color: var(--text); }

.account-card h2 { font-size: 1.6rem; }
.account-card h2:focus { outline: none; }
.account-card h2:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.acct-view { margin-top: 8px; }
.acct-intro { color: var(--text); line-height: 1.5; margin: 0 0 16px; font-size: 1.05rem; }
.acct-msg { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; line-height: 1.45; }
.account-card input, .account-card select { min-height: 48px; font-size: 1.05rem; }
.acct-code { font-size: 1.6rem; letter-spacing: .25em; font-variant-numeric: tabular-nums lining-nums; text-align: center; max-width: 12ch; }
.acct-turnstile { margin: 4px 0 12px; min-height: 65px; }
.acct-privacy { margin: 16px 0 0; font-size: .9rem; }
.acct-privacy a { color: var(--muted); }
.acct-privacy a:hover, .acct-privacy a:focus-visible { color: var(--text); }

.acct-stats { border-top: 1px solid var(--line); margin: 16px 0 8px; padding-top: 12px; }
.acct-stats h3, .acct-confirm h3 { font-size: 1.15rem; margin: 0 0 10px; }
.acct-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-variant-numeric: tabular-nums lining-nums; }
.acct-table caption { text-align: left; color: var(--muted); font-size: .95rem; padding: 0 0 6px; }
.acct-table th, .acct-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; font-size: 1.05rem; }
.acct-table th:first-child { text-align: left; font-weight: 600; }
.acct-table thead th { color: var(--muted); font-weight: 500; font-size: .9rem; }
.acct-table tbody tr:last-child th, .acct-table tbody tr:last-child td { border-bottom: 0; font-weight: 700; }
.acct-double { color: var(--muted); margin: 0 0 4px; }

.acct-session { margin-top: 16px; }
.acct-danger { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
button.danger { border-color: var(--red); color: #ffd9d6; background: transparent; }
button.danger:hover { background: rgba(208, 84, 79, .15); border-color: var(--red); }
.acct-confirm { border: 2px solid var(--red); border-radius: var(--radius); padding: 14px; }
.acct-confirm p { line-height: 1.5; margin: 0 0 12px; }
.acct-confirm .danger { background: var(--red); color: #fff; font-weight: 700; }

/* large controls (html.big-ui): same 64 px targets as everywhere else */
.big-ui .account-btn { min-height: 64px; font-size: 1.1rem; color: var(--text); }
.big-ui .account-card input, .big-ui .account-card select { min-height: 64px; }
.big-ui .acct-table th, .big-ui .acct-table td { padding: 12px 6px; font-size: 1.15rem; }

/* the login page (anmelden.html) */
.login-page { max-width: 520px; margin: 0 auto; padding: 24px 16px; }
.login-page .card { text-align: center; }
.login-page h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 4px 0 12px; }
.login-page p { line-height: 1.5; font-size: 1.05rem; }
.login-page .actions { justify-content: center; }
.login-page .actions button, .login-page .actions .btn-link { min-height: 56px; font-size: 1.1rem; }

@media (forced-colors: active) {
  button.danger, .acct-confirm { border-color: CanvasText; }
}
