/* GameBuddy prototype - AUTH module (owner: the auth module agent). Class prefix: au-. Colors from tokens only (var(--...)); never restyle pd-* classes, compose them.
   Sections: forms | links | date of birth | checks | blocks | legal */

/* ---------- forms ---------- */
.au-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.au-errhost { min-width: 0; }
.au-errhost:empty { display: none; }
.au-row { margin-top: -4px; }
.au-alt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.au-alt > .pd-btn--block { width: 100%; }
.au-center { display: flex; justify-content: center; }
.au-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- links ---------- */
.au-link { color: var(--accent-text); font-weight: 500; text-decoration: none; border-radius: var(--r-btn); }
.au-link:hover { text-decoration: underline; }
.au-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-link--btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 500; cursor: pointer; display: inline; }

/* ---------- date of birth (three numeric fields) ---------- */
.au-dob { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.au-dob__legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-md); font-weight: 500; color: var(--text-2); }
.au-dob__row { display: flex; flex-wrap: wrap; gap: 10px; }
.au-dob__part { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }

/* ---------- checks ---------- */
.au-check { gap: 4px; }
.au-check .pd-check { align-items: flex-start; }

/* ---------- blocks (suspended screen) ---------- */
.au-block { display: flex; flex-direction: column; gap: 6px; }
.au-block__title { font-size: var(--fs-md); font-weight: 600; color: var(--text-2); }
.au-block__text { font-size: var(--fs-base); color: var(--text-2); line-height: 1.55; }
.au-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- legal drawer ---------- */
.au-legal { display: flex; flex-direction: column; gap: 14px; }
.au-legal__p { font-size: var(--fs-base); color: var(--text-2); line-height: 1.6; }

/* ---------- mail flows: forgot and reset password, confirm the address, the mailbox of this computer ---------- */
.au-lead { margin: 0; font-size: var(--fs-base); color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.au-note { margin: 0; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; overflow-wrap: anywhere; }
.au-mailnote__text { margin: 0; }
.au-mailnote__act { margin-top: 8px; }
.au-who { margin: 0; font-size: var(--fs-md); color: var(--text-2); overflow-wrap: anywhere; }
.au-second { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.au-second[hidden] { display: none; }
.au-resend { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.au-resend .pd-resend { max-width: 100%; }
.au-mb { min-width: 0; }
.au-mb__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.au-mb__bar > .au-note { flex: 1 1 220px; }
.au-mb__cols { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 16px; align-items: start; }
.au-mb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-mb__item { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-align: left; font: inherit; color: inherit; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-inner); cursor: pointer; }
.au-mb__item:hover { background: var(--bg-hover); }
.au-mb__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-mb__item.is-current { border-color: var(--accent); background: var(--accent-soft); }
.au-mb__subj { font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.au-mb__sub { font-size: var(--fs-sm); color: var(--text-3); overflow-wrap: anywhere; }
.au-mb__read { min-width: 0; }
.au-mb__msg { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--bg-surface); }
.au-mb__msg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-mb__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.au-mb__meta { margin: 0; font-size: var(--fs-sm); color: var(--text-3); overflow-wrap: anywhere; }
.au-mb__code { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-mb__code .pd-copy__val { font-size: var(--fs-xl); letter-spacing: .08em; }
.au-mb__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--fs-md); color: var(--text-2); line-height: 1.55; }
@media (max-width: 719px) {
  .au-mb__cols { grid-template-columns: minmax(0, 1fr); }
}
