/* =====================================================================
   The sign-in screen (LoginScreen of UI.Shared, PBI #515) inside the applications with the look of the public site:
   the Marketplace and the chat link it after css/site.css; Unit Control (html.fcc-uc) bundles it after fcc-ui.css, with
   the same dark card (PBI #642: no paper in UC). The panel styles the same screen on paper in components.css. Only the
   tokens of the public family (--panel, --gold…, html.fcc-site and html.fcc-uc; light theme of the chat
   included): no colour is written here. Unlayered, so it also wins over the paper look of components.css that the
   chat's dossier bundle brings in its cascade layer (hence the resets of shadow, type faces and letter spacing).
   ===================================================================== */
:is(.fcc-site, .fcc-uc) body:has(.auth-screen) { color-scheme:inherit; }
:is(.fcc-site, .fcc-uc) .auth-screen.is-embedded { display:grid; place-items:center; flex:1; min-height:0; background:none; padding:40px var(--gutter, 16px) 72px; }
:is(.fcc-site, .fcc-uc) .auth-card {
    display:grid; gap:10px; width:100%; max-width:440px; padding:0 22px 24px; overflow:hidden;
    border:1px solid var(--line-2); border-top:3px solid var(--gold); border-radius:8px; background:var(--panel); color:var(--text);
    box-shadow:none; font-family:var(--sans, var(--ag-sans));
}
:is(.fcc-site, .fcc-uc) .auth-card .brand-logo { display:grid; justify-items:start; gap:4px; margin:0 -22px 8px; padding:18px 22px 12px; background:var(--bg); border-bottom:1px solid var(--line-2); }
:is(.fcc-site, .fcc-uc) .auth-card .brand-logo img { display:block; width:180px; max-width:100%; height:auto; }
:is(.fcc-site, .fcc-uc) .auth-card .brand-logo span { font:600 .75rem var(--sans, var(--ag-sans)); letter-spacing:.24em; color:var(--gold-2); }
:is(.fcc-site, .fcc-uc) .auth-card h1 { margin:0; font-family:var(--display); font-size:1.9rem; letter-spacing:normal; color:var(--text); }
:is(.fcc-site, .fcc-uc) .auth-hint { margin:0; color:var(--muted); font-size:.86rem; line-height:1.45; }
:is(.fcc-site, .fcc-uc) .auth-notice { margin:0; padding:8px 10px; border-left:3px solid var(--gold); background:var(--gold-dim); color:var(--text); font-size:.86rem; line-height:1.45; }
:is(.fcc-site, .fcc-uc) .auth-card .field-label { margin:6px 0 0; color:var(--text-2); font:600 .8rem var(--sans, var(--ag-sans)); letter-spacing:normal; text-transform:none; }
:is(.fcc-site, .fcc-uc) .auth-card .form-control {
    width:100%; min-height:44px; padding:8px 12px; border:1px solid var(--line-control); border-radius:var(--radius);
    background:var(--panel-2); color:var(--text); font:400 1rem var(--sans, var(--ag-sans));
}
:is(.fcc-site, .fcc-uc) .auth-card .form-control::placeholder { color:var(--muted); }
:is(.fcc-site, .fcc-uc) .auth-card .form-control:focus { border-color:var(--gold); outline:2px solid var(--gold); outline-offset:1px; }
:is(.fcc-site, .fcc-uc) .auth-card .form-control[aria-invalid="true"] { border-color:var(--red); }
:is(.fcc-site, .fcc-uc) .pw-field { position:relative; }
:is(.fcc-site, .fcc-uc) .pw-field .form-control { padding-right:96px; }
:is(.fcc-site, .fcc-uc) .pw-toggle {
    position:absolute; top:50%; right:6px; transform:translateY(-50%); min-height:32px; padding:2px 10px;
    border:1px solid var(--line-control); border-radius:var(--radius); background:var(--panel-3); color:var(--text-2);
    font:600 var(--fs-action) var(--sans, var(--ag-sans)); letter-spacing:normal; cursor:pointer;
}
:is(.fcc-site, .fcc-uc) .pw-toggle:hover, :is(.fcc-site, .fcc-uc) .pw-toggle[aria-pressed="true"] { border-color:var(--gold); color:var(--gold-2); }
:is(.fcc-site, .fcc-uc) .auth-forgot, :is(.fcc-site, .fcc-uc) .auth-back { justify-self:start; min-height:32px; padding:0; font-size:.86rem; }
:is(.fcc-site, .fcc-uc) .auth-error { padding:10px 12px; border-left:3px solid var(--red); border-radius:var(--radius); background:var(--panel-2); color:var(--text); font-size:.92rem; }
:is(.fcc-site, .fcc-uc) .auth-submit { width:100%; min-height:52px; margin-top:6px; }
:is(.fcc-site, .fcc-uc) .auth-switch { margin:4px 0 0; color:var(--text-2); font-size:.92rem; text-align:center; }
:is(.fcc-site, .fcc-uc) .auth-switch .btn-link { min-height:0; padding:0 2px; font-size:inherit; vertical-align:baseline; }
:is(.fcc-site, .fcc-uc) .auth-note { display:flex; gap:8px; margin:6px 0 0; color:var(--muted); font-size:.84rem; line-height:1.45; }
:is(.fcc-site, .fcc-uc) .auth-note .icon { flex:none; margin-top:3px; }
