/*
 * Shared pieces that look like whichever site they are on: sign-in, account,
 * the error page, the consent bar. They take their look from eight variables
 * every site stylesheet defines on :root:
 *   --f-bg --f-fg --f-muted --f-accent --f-accent-fg --f-rule --f-font --f-radius
 * The fallbacks below only apply if a site forgets one.
 */
.f-shell { max-width: 30rem; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; font-family: var(--f-font, system-ui, sans-serif); color: var(--f-fg, #111); }
.f-shell h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 .5rem; }
.f-shell p { line-height: 1.55; margin: 0 0 1rem; }
.f-lede { color: var(--f-muted, #555); }
.f-field { display: block; margin: 1.25rem 0 .75rem; }
.f-field label { display: block; font-size: .875rem; margin-bottom: .375rem; }
.f-field input { width: 100%; box-sizing: border-box; font: inherit; padding: .7rem .8rem; color: var(--f-fg, #111); background: var(--f-bg, #fff); border: 1px solid var(--f-rule, #bbb); border-radius: var(--f-radius, 4px); }
.f-field input:focus-visible, .f-btn:focus-visible { outline: 2px solid var(--f-accent, #1f3a8a); outline-offset: 2px; }
.f-code-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.f-btn { font: inherit; font-weight: 600; cursor: pointer; padding: .7rem 1.1rem; border: 1px solid var(--f-accent, #1f3a8a); border-radius: var(--f-radius, 4px); background: var(--f-accent, #1f3a8a); color: var(--f-accent-fg, #fff); text-decoration: none; display: inline-block; }
.f-btn-block { display: block; width: 100%; text-align: center; }
.f-btn-quiet { background: transparent; color: var(--f-fg, #111); border-color: var(--f-rule, #bbb); font-weight: 500; }
.f-btn-danger { background: transparent; color: #a11; border-color: #a11; }
.f-row { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.f-flash { display: none; margin: .9rem 0 0; padding: .65rem .8rem; border-left: 3px solid var(--f-rule, #bbb); font-size: .9375rem; }
.f-flash.show, .f-flash.static { display: block; }
.f-flash.error { border-color: #a11; }
.f-flash.success { border-color: #1a7f4b; }
.f-hide, .hide { display: none !important; }
#magic-link-code-step { display: none; }
#magic-link-code-step.show { display: block; }
.f-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-meta { color: var(--f-muted, #555); font-size: .875rem; }
.f-section { border-top: 1px solid var(--f-rule, #bbb); margin-top: 2rem; padding-top: 1.5rem; }

.f-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin: 0 auto; z-index: 50; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .9rem 1rem; font-family: var(--f-font, system-ui, sans-serif); font-size: .875rem; line-height: 1.45; color: var(--f-fg, #111); background: var(--f-bg, #fff); border: 1px solid var(--f-rule, #bbb); border-radius: var(--f-radius, 4px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.f-consent[hidden] { display: none; }
.f-consent p { margin: 0; flex: 1 1 16rem; }
.f-consent a { color: inherit; }
.f-consent-actions { display: flex; gap: .5rem; }
.f-consent .f-btn { padding: .45rem .8rem; }
