/* Account pages: combined login/registration, forgot/reset, dashboard.
   Spec: docs/superpowers/specs/2026-10-11-accounts-design.md */
.acct-page { padding-bottom: 48px; }
.acct-row { margin-top: 16px; }
.acct-panel { padding: 20px 22px; margin-bottom: 20px; scroll-margin-top: calc(var(--hdr-top) + var(--hdr-menu) + 12px); }
/* Panel headings sit inside .single, whose h2 rule centres them at 2em with a
   navy bar underneath; .acct-page raises specificity so these win. */
.acct-page .acct-h { font-size: 18px; font-weight: 500; text-align: left; color: var(--ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.acct-page .acct-h::after { content: none; display: none; }
.acct-form label { color: var(--ink); font-weight: 500; }
.acct-form .form-control { height: 42px; border-color: var(--rule); box-shadow: none; }
.acct-form .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.acct-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.acct-label-row a, .acct-switch a { color: var(--action); }
.acct-btn { background: var(--action); border: 1px solid var(--action); color: #fff; height: 44px; font-size: 16px; }
.acct-btn:hover, .acct-btn:focus { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.acct-btn-alt { background: var(--surface); border: 1px solid var(--navy); color: var(--navy); height: 44px; font-size: 16px; }
.acct-btn-alt:hover, .acct-btn-alt:focus { background: var(--navy-tint); color: var(--navy); }
.acct-switch { margin: 14px 0 0; text-align: center; color: var(--body); }
.acct-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.acct-errors { margin: 0; padding-left: 18px; }
.acct-alert { margin-top: 12px; }
.acct-alert:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.acct-panel .acct-alert { margin: 0 0 14px; }
.acct-form .acct-remember { margin: 6px 0 18px; }
.acct-avatar { display: inline-block; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.acct-avatar-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--navy-tint); color: var(--navy); }
.hdr-logout-form { margin: 0; }
.hdr-logout-btn { display: block; width: 100%; padding: 3px 20px; border: 0; background: none; text-align: left; color: var(--ink); line-height: 1.42857; }
.hdr-logout-btn:hover, .hdr-logout-btn:focus { background: var(--navy-tint); }
@media (max-width: 991px) {
  .acct-row > [class*="col-md-6"] { width: 100%; }
}

/* Dashboard */
.acct-dash { padding-top: 16px; }
.acct-card { padding: 20px; text-align: center; margin-bottom: 20px; }
.acct-card .acct-avatar { margin: 0 auto 10px; }
.acct-card-name { font-size: 20px; margin: 4px 0 2px; color: var(--ink); }
.acct-card-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.acct-nav { display: flex; flex-direction: column; text-align: left; border-top: 1px solid var(--rule); margin: 0 -20px 14px; }
.acct-nav a { padding: 9px 20px; color: var(--body); border-left: 3px solid transparent; }
.acct-nav a:hover, .acct-nav a:focus { background: var(--navy-tint); color: var(--ink); border-left-color: var(--orange); text-decoration: none; }
.acct-chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.acct-chip { display: inline-flex; align-items: center; background: var(--navy-tint); border-radius: 16px; padding: 4px 6px 4px 12px; }
.acct-chip a { color: var(--navy); }
.acct-chip-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.acct-inline-form { display: inline; margin: 0; }
.acct-exam-add { display: flex; gap: 8px; max-width: 520px; }
.acct-exam-add .form-control { flex: 1; }
.acct-photo-row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.acct-photo-form { position: relative; }
.acct-photo-form .btn { margin-right: 6px; vertical-align: middle; }
/* "Choose photo" is a <label>, which brings Bootstrap's label margin and bold
   weight; match it to the Upload button so the two line up. */
.acct-photo-form label.btn { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; font-weight: 400; line-height: 1; }
.acct-photo-form .btn.acct-btn { display: inline-flex; align-items: center; line-height: 1; }
/* Keep the visually hidden file input inside the form, not at the page edge. */
.acct-photo-form .js-photo-input { top: 0; left: 0; }
.acct-narrow { max-width: 420px; }
.acct-verify { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.acct-verify .btn-link { padding: 0 4px; color: var(--action); }
@media (max-width: 767px) {
  .acct-panel { scroll-margin-top: calc(var(--hdr-mobile) + 12px); }
  .acct-exam-add { flex-direction: column; }
}
