/* Account management pages (authn): My account, password, two-factor, recovery codes, /system/users/.
   Everything is namespaced .an-auth* and built on the shared Ember + Ink tokens in adsngin.css. */

.an-auth { max-width: 640px; margin: 0 auto; }
.an-auth-wide { max-width: 1040px; }
.an-auth > h1 { margin-bottom: 16px; }
.an-auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.an-auth-head h1 { margin: 0; }
.an-auth-card h2 { font-size: 15px; font-weight: 600; }
.an-auth-card > p { margin: 0 0 12px; }

/* forms: stacked, one column, 16px between fields; a field's own label sits above its input */
.an-auth-form { display: flex; flex-direction: column; gap: 4px; }
.an-auth-form label { font-size: 13px; font-weight: 600; color: var(--an-muted); margin: 8px 0 0; }
.an-auth-form label input, .an-auth-form label select { margin-top: 6px; font-size: 15px; font-weight: 400; }
.an-auth-form .an-form-buttons { margin-top: 12px; flex-wrap: wrap; }
.an-auth-form .an-muted { margin: 8px 0 0; font-size: 13px; }
.an-auth-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.an-auth-inline select { flex: 1 1 200px; min-width: 0; }
.an-card .an-auth-inline select { width: auto; }
.an-auth-kv { margin: 0 0 16px; }
.an-auth-kv dt { color: var(--an-muted); font-size: 13px; }
.an-auth-kv dd { margin: 0; overflow-wrap: anywhere; }

/* sign-in, code and password messages */
.an-auth-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--an-action-bg); color: var(--an-action); font-size: 14px; font-weight: 500; }
.an-auth-banner { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--an-radius); background: var(--an-attention-bg); color: var(--an-attention); font-size: 14px; font-weight: 500; }
.an-auth-card > .an-auth-banner { margin-top: 0; }

/* security rows on My account, and the action rows on a person's page */
.an-auth-links, .an-auth-actions { list-style: none; margin: 0; padding: 0; }
.an-auth-links li, .an-auth-actions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--an-line); }
.an-auth-links li:first-child, .an-auth-actions li:first-child { border-top: 0; padding-top: 0; }
.an-auth-links li:last-child, .an-auth-actions li:last-child { padding-bottom: 0; }
.an-auth-actions p { margin: 2px 0 0; font-size: 13px; }
.an-auth-actions form { flex: none; }
.an-auth-theme { display: flex; }
.an-auth-theme .an-seg { margin-left: 0; }

/* two-factor enrolment */
.an-auth-steps { margin: 0 0 16px; padding-left: 20px; color: var(--an-muted); }
.an-auth-steps li { margin: 2px 0; }
.an-auth-qr { width: 220px; max-width: 100%; padding: 12px; margin: 0 0 12px; background: #ffffff; border-radius: 12px; border: 1px solid var(--an-line); }
.an-auth-qr svg { display: block; width: 100%; height: auto; }
.an-auth-key { margin: 0 0 8px; color: var(--an-muted); font-size: 13px; }
.an-auth-key code { font-size: 14px; letter-spacing: 0.04em; color: var(--an-ink); background: var(--an-sunk); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.an-auth-codes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.an-auth-codes li { padding: 10px 12px; border-radius: 12px; background: var(--an-sunk); text-align: center; }
.an-auth-codes code { font-size: 16px; letter-spacing: 0.06em; color: var(--an-ink); }

@media (max-width: 640px) {
  .an-auth-head { flex-wrap: wrap; }
  .an-auth-links li, .an-auth-actions li { align-items: flex-start; flex-wrap: wrap; }
}
@media print {
  body.an-body > header, .an-tabs, .an-foot, .an-mockbanner { display: none; }
  .an-auth-codes li { border: 1px solid #999; background: none; }
}
