/* ForgeOS public site — auth pages. Built on forgeos-site.css (FDS); only what
   those pages need beyond it lives here. No style attributes: the app serves
   these pages under style-src 'self'. */

/* A class that sets display would otherwise beat the hidden attribute, and an
   error box that is always on screen says something went wrong when nothing did. */
.auth-page [hidden] { display: none !important; }

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-top .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.auth-top .brand img { width: 24px; height: 24px; }
.auth-top .brand small { font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.auth-top nav { display: flex; gap: 4px; }
.auth-top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.auth-top nav a:hover { background: var(--surface-2); color: var(--ink); }

.auth-box { padding: 40px 0; }
.auth-box h1 { font-weight: 700; }
.auth-sub { margin: 10px 0 28px; color: var(--ink-3); }
.auth-box a:not(.btn):not(.bd-btn-social) { color: var(--tint-ink); font-weight: 600; }
.auth-box a:not(.btn):not(.bd-btn-social):hover { text-decoration: underline; text-underline-offset: 3px; }

/* The server's sentence, and the page's own. Errors in the danger role,
   everything else neutral, both from theme-aware tokens. */
.auth-msg { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.auth-msg.is-err { background: var(--m19-state-danger-soft); color: var(--m19-state-danger-ink); border-color: color-mix(in srgb, var(--m19-state-danger) 35%, transparent); }
.auth-msg.is-err a { color: inherit !important; text-decoration: underline; }
.auth-note { margin: 0; font-size: 14px; color: var(--ink-3); }

.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-row a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field select { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 128px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 4px rgba(99,102,241,.16); }

.auth-more { margin: 0 0 16px; }
.auth-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.auth-more summary::before { content: "+"; width: 1em; color: var(--tint-ink); }
.auth-more[open] summary::before { content: "–"; }
.auth-more .auth-note { margin-bottom: 10px; }
.auth-more .field { margin-top: 4px; }

/* Provider buttons. site.js builds them, so these are its class names. The
   holder keeps its height while the list is fetched so nothing below moves. */
#social-signin.bd-reserved[hidden] { display: block !important; visibility: hidden; }
#social-signin.bd-held { min-height: 104px; }
.social-buttons { display: grid; gap: 8px; }
.social .or { margin: 16px 0 12px; }
.bd-btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font); }
.bd-btn-social:hover { background: var(--surface-2); }

.auth-box .or, .auth-fine { color: var(--ink-3); }
.auth-fine { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.auth-fine a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-fine a:hover { color: var(--ink); }

.auth-art .decide .btn { pointer-events: none; }
.auth-art .quote { margin: 0; }
