/* ==========================================================================
   NoxTools · noxtools-v2 · pages/auth-forms.am.css (A-auth)
   Only what the real sign-in, forgot / reset password and error pages need on top of the verbatim prototype CSS
   (base.css + auth.css + pages/{login,forgot-password,reset-password,error}.css), which is never edited.
   ========================================================================== */

/* JavaScript off (or the shell failed): shell.js draws the frame around <main>, so without it keep a readable column */
body[data-layout="auth"] > main.auth-main { width: 100%; max-width: 448px; margin: 0 auto; padding: 48px 24px 64px; }
body[data-layout="auth"][data-auth="center"] > main.auth-main { max-width: 568px; }
body[data-layout="auth"] > main.auth-main .input-btn { display: none; }   /* show / hide password needs JavaScript */

/* blocks other plugins may put around the sign-in form (login/top, login/form/before|after, login/bottom) */
.nxl-blocks { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.auth-panel > form + .nxl-blocks { margin: 16px 0 0; }

/* reCAPTCHA, only when Setup → ReCaptcha asks for it on every sign-in */
.nxl-captcha { align-items: flex-start; overflow-x: auto; }

/* a panel that appears after an XHR (forgot password → "Check your inbox") gets the focus on its heading for screen
   readers; the heading is not a control, so no focus ring */
.auth-title[tabindex="-1"]:focus { outline: none; }

/* aMember's messages may carry a link (e.g. "login to your account") */
.auth-panel .alert-text a, .auth-card .alert-text a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the reset form: aMember prints the field values back as a frozen text, the account card shows them instead */
.rp-account .avatar { flex: none; }

/* the error card: aMember's own text can be long (a list, or a link to the right page) */
.err-head .auth-sub { overflow-wrap: anywhere; }
.err-head .auth-sub ul { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.err-head .auth-sub a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* a payment link whose invoice is already paid (error.phtml): green mark, so a green eyebrow too (error.css colours
   only the red, amber and plain marks) */
.err-head .auth-mark.tone-green + .err-eyebrow { color: var(--green-text); }
/* the address of the page that failed: one line, cut with … (the full path is in its title) */
.es-sub.nxl-es-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err-trace { margin-top: 18px; font-size: 12px; color: var(--muted); }
.err-trace pre { max-height: 320px; overflow: auto; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); font: 400 11.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* the small fragment an XHR gets instead of the whole error page */
.nxl-err-fragment { margin: 0; }
