/* One Fugaji login appearance. Authentication handlers and form IDs stay unchanged. */
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card){--login-ink:#111;--login-field:#ededed;color:var(--login-ink)!important;font-family:Arial,Helvetica,sans-serif!important;text-align:center!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) .fugaji-logo-image{display:block!important;width:auto!important;height:96px!important;max-width:100%!important;object-fit:contain!important;margin:0 auto 26px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;filter:none!important;flex:none!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) :is(.fugaji-mark,.fugaji-login-mark){display:block!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) :is(h1,h2){display:block!important;margin:0 0 28px!important;color:#111!important;font:700 clamp(28px,7.4vw,34px)/1.15 Arial,Helvetica,sans-serif!important;letter-spacing:-1.1px!important;text-align:center!important}
#auth-card .bp-unified-login-heading{display:block!important;margin:0!important;padding:0!important;gap:0!important;text-align:center!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) :is(input:not([type=checkbox]):not([type=hidden]),select){box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:54px!important;border:1px solid transparent!important;border-radius:8px!important;padding:15px 17px!important;margin:0!important;background:var(--login-field)!important;color:#111!important;font:400 16px/1.4 Arial,Helvetica,sans-serif!important;box-shadow:none!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) input:focus-visible{outline:2px solid #111!important;outline-offset:2px!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;margin:0!important}
#auth-card :is(.owner-grid,.auth-actions){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;margin:0!important}
#auth-card .auth-actions{margin-top:12px!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form]),.fugaji-admin-login-card) :is(button[type=submit],.continue,#sign-in,#load-authorizations){box-sizing:border-box!important;display:block!important;width:100%!important;min-height:52px!important;padding:14px 18px!important;border:1px solid #111!important;border-radius:8px!important;background:#111!important;color:#fff!important;font:600 15px/1.4 Arial,Helvetica,sans-serif!important;box-shadow:none!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) :is(.google-login,.guest-oauth-button,.bp-unified-google-button){box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:52px!important;border:1px solid #d2d2d2!important;border-radius:8px!important;background:#fff!important;color:#111!important;font:600 15px/1.4 Arial,Helvetica,sans-serif!important;text-decoration:none!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) :is(.text-link,.bp-profile-staff-login,.bp-unified-login-link,.owner-one-account-login button){background:transparent!important;border:0!important;box-shadow:none!important;color:#333!important;font:400 13px/1.6 Arial,Helvetica,sans-serif!important;text-decoration:underline!important;text-underline-offset:4px!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) :is(p,small){line-height:1.6!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) [hidden]{display:none!important}
:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) button:disabled{opacity:.55!important;cursor:wait!important}
#auth-card #sign-up{display:none!important}
#auth-card .owner-field>span,.guest-login-card:has([data-profile-login-form]) label>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
/* Owner/Staff sign-in is a complete white screen until the workspace is unlocked. */
html body:has(#auth-card:not([hidden])){background:#fff!important;color:#111!important}
body:has(#auth-card:not([hidden])) :is(.owner-header,.owner-bottom-nav,.owner-bottom-nav-restore){display:none!important}
body:has(#auth-card:not([hidden])) .owner-shell{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:none!important;min-height:100svh!important;margin:0!important;padding:76px 24px 46px!important}
body:has(#auth-card:not([hidden])) .owner-shell>:not(#auth-card):not(#owner-message){display:none!important}
#auth-card:not([hidden]){box-sizing:border-box!important;display:block!important;width:min(100%,410px)!important;max-width:410px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
body:has(#auth-card:not([hidden])) #owner-message{width:min(100%,410px)!important;text-align:center!important;font-size:13px!important;margin:14px 0 0!important}
.fugaji-auth-close,.login-close{position:fixed!important;top:max(18px,env(safe-area-inset-top))!important;right:20px!important;z-index:200!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:#f0f0ed!important;color:#111!important;font:300 27px/1 Arial!important;text-decoration:none!important}
.fugaji-auth-close{display:none!important}body:has(#auth-card:not([hidden]))>.fugaji-auth-close{display:grid!important}
/* Member email and Staff password/PIN modes share the same popup shell. */
html body .guest-profile-sheet:has([data-profile-login-form]){position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100svh!important;max-height:100svh!important;transform:none!important;border-radius:0!important;background:#fff!important;color:#111!important;padding:0!important;overflow-y:auto!important}
.guest-profile-sheet:has([data-profile-login-form]) :is(.guest-profile-header,.guest-profile-handle){display:none!important}
.guest-profile-sheet:has([data-profile-login-form]) .guest-profile-content{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;width:100%!important;max-width:458px!important;min-height:100svh!important;margin:0 auto!important;padding:76px 24px 46px!important}
.guest-profile-sheet:has([data-profile-login-form]) .guest-login-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.guest-profile-sheet:has([data-profile-login-form]) .guest-profile-close{position:fixed!important;top:max(18px,env(safe-area-inset-top))!important;right:20px!important;z-index:3!important;background:#f0f0ed!important;color:#111!important;width:38px!important;height:38px!important;border-radius:50%!important}
.guest-login-card:has([data-profile-login-form]) :is(.guest-oauth-divider,.bp-unified-login-divider){display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;color:#888!important;font-size:13px!important;margin:4px 0!important}
.guest-login-card:has([data-profile-login-form]) .guest-oauth-divider:before,.guest-login-card:has([data-profile-login-form]) .guest-oauth-divider:after{content:'';height:1px;flex:1;background:#dedede}
.guest-login-card:has([data-profile-login-form]) .guest-oauth-logo{display:inline!important;position:static!important;width:auto!important;height:auto!important}
.fugaji-admin-login-card{box-sizing:border-box;max-width:410px;margin:35px auto;padding:0;border:0;background:#fff}.fugaji-admin-login-card label{display:grid;gap:8px;text-align:left}.fugaji-admin-login-card #load-authorizations{margin-top:12px!important}
@media(max-height:680px){:is(.login-card,#auth-card,.guest-login-card:has([data-profile-login-form])) .fugaji-logo-image{height:72px!important;margin-bottom:18px!important}body:has(#auth-card:not([hidden])) .owner-shell,.guest-profile-sheet:has([data-profile-login-form]) .guest-profile-content{justify-content:flex-start!important;padding-top:68px!important}}

#auth-card .bp-unified-login-divider{display:flex;align-items:center;gap:14px;margin:23px 0;color:#888;font:13px Arial}#auth-card .bp-unified-login-divider:before,#auth-card .bp-unified-login-divider:after{content:"";height:1px;flex:1;background:#dedede}#auth-card .bp-unified-login-link{display:block;width:100%;min-height:44px;margin:14px 0 0;padding:8px}#auth-card .bp-unified-login-note{font-size:12px;color:#777;text-align:center;margin:8px 0 0}

/* Keep desktop owner screens free of the dashboard navigation padding. */
html body:has(#auth-card:not([hidden])){margin:0!important;padding:0!important;min-height:100svh!important}
#auth-card .auth-actions{margin-top:0!important}
#bp-staff-auth .bp-unified-login-note{display:none!important}
.guest-login-card:has([data-profile-login-form]) .fugaji-logo-image{margin-bottom:10px!important}
.guest-login-card:has([data-profile-login-form]) h2{margin-bottom:12px!important}
@media(max-height:680px){.guest-login-card:has([data-profile-login-form]) .fugaji-logo-image{margin-bottom:2px!important}}
