/* Login, onboarding and settings pages. Uses the colour tokens from /style.css. */
/* style.css locks body scrolling for the chat; account pages are ordinary scrolling pages. */
body.account-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; background: var(--bg); overflow-y: auto; box-sizing: border-box; }
.acct-card { width: 100%; max-width: 440px; }
.acct-brand { font-size: 15px; font-weight: 600; margin-bottom: 28px; text-align: center; }
.acct-title { font-size: 28px; font-weight: 600; margin: 0 0 8px; text-align: center; }
.acct-sub { color: var(--text2); margin: 0 0 24px; text-align: center; font-size: 15px; line-height: 1.45; }
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-field { display: flex; flex-direction: column; gap: 6px; }
/* display:flex above would otherwise beat the hidden attribute (the name box showed on sign-in). */
.acct-field[hidden] { display: none; }
.acct-field label { font-size: 13.5px; font-weight: 500; }
.acct-field .opt { color: var(--text2); font-weight: 400; }
.acct-field input, .acct-field select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; outline: none;
}
.acct-field input:focus, .acct-field select:focus { border-color: var(--text2); }
.acct-field input[readonly] { color: var(--text2); background: var(--hover); }
.acct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-btn {
  font: inherit; font-size: 15px; font-weight: 500; border: 0; border-radius: 999px; padding: 12px 16px; cursor: pointer;
  background: var(--send-bg); color: var(--send-fg); margin-top: 6px;
}
.acct-btn:disabled { opacity: .5; cursor: default; }
.acct-btn.secondary { background: none; color: var(--text); border: 1px solid var(--border); }
.acct-btn.acct-btn-danger { background: none; color: var(--error-text); border: 1px solid var(--error-border); }
.acct-error { color: var(--error-text); font-size: 14px; min-height: 1em; }
.acct-error:empty { display: none; }
.acct-ok { color: #15803d; font-size: 14px; }
.acct-ok:empty { display: none; }
.acct-switch { text-align: center; font-size: 14px; color: var(--text2); margin-top: 18px; }
.acct-switch button, .acct-link { background: none; border: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; padding: 0; }
.acct-note { font-size: 13px; color: var(--text2); line-height: 1.5; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.acct-section { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 -4px; }
.acct-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; }
.acct-top a { color: var(--text2); text-decoration: none; }
.acct-top a:hover { color: var(--text); }
.acct-toggle { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; position: relative; }
.acct-toggle-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.acct-toggle-name { font-size: 14.5px; font-weight: 500; }
.acct-toggle-desc { font-size: 13px; color: var(--text2); line-height: 1.45; }
.acct-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acct-toggle-track { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--border); position: relative; margin-top: 1px; transition: background .15s; }
.acct-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px #0003; transition: transform .15s; }
.acct-toggle input:checked + .acct-toggle-track { background: var(--send-bg); }
.acct-toggle input:checked + .acct-toggle-track::after { transform: translateX(16px); }
.acct-toggle input:focus-visible + .acct-toggle-track { outline: 2px solid var(--text2); outline-offset: 2px; }
@media (max-width: 420px) { .acct-row { grid-template-columns: 1fr; } }

/* Settings → tabs, and "What Kelvin knows". */
.set-tabs { display: flex; gap: 4px; padding: 8px 22px 0; border-bottom: 1px solid var(--border); flex: none; }
.set-tab { font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; color: var(--text2); cursor: pointer; }
.set-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.set-learning[hidden], .acct-form[hidden] { display: none; }
.set-learning-doc { font-size: 14.5px; line-height: 1.55; }
.set-learning-doc h1 { font-size: 20px; margin: 0 0 6px; }
.set-learning-doc h2 { font-size: 15.5px; margin: 18px 0 6px; }
.set-learning-doc p { color: var(--text2); margin: 0 0 8px; }
.set-learning-doc ul { margin: 0; padding-left: 20px; }
.set-learning-doc li { margin: 4px 0; }
