/* Public entry presentation only; shared taskbar and authenticated tools retain their shell. */
body:not(.is-authenticated):not(.is-registering) { background: #f3f7fb; }
body:not(.is-authenticated):not(.is-registering) .ambient { display: none; }
#auth-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: calc(100svh - 180px); padding: 32px 0 64px; }
#auth-panel.hidden { display: none; }
#auth-panel .auth-story { position: relative; isolation: isolate; display: grid; align-content: center; min-height: 580px; padding: 48px 32px; border: 0; border-radius: 24px; background: #fff; box-shadow: none; overflow: hidden; }
#auth-panel .auth-story::after { content: ''; position: absolute; z-index: -1; inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, #fff 8%, rgba(255,255,255,.92) 43%, rgba(255,255,255,.28)), linear-gradient(0deg, rgba(255,255,255,.7), transparent); pointer-events: none; }
#auth-panel .login-story-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
#auth-panel .auth-story-head { position: relative; max-width: 460px; gap: 24px; }
#auth-panel .auth-story h1 { color: #161823; font: 800 clamp(2.8rem, 4.6vw, 4.8rem)/1.06 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -.045em; }
#auth-panel .auth-story .eyebrow { color: #245ddb; letter-spacing: .13em; }
#auth-panel .auth-story .lead { max-width: 34ch; color: #4b5668; font-size: 1.1rem; line-height: 1.65; }
#auth-panel .login-story-link { color: #245ddb; text-decoration: none; font-weight: 750; }
#auth-panel .auth-card { display: block; backdrop-filter: none; }
#auth-panel .auth-card-head { position: relative; display: grid; gap: 10px; margin-bottom: 26px; text-align: center; }
#auth-panel .auth-card-head .section-kicker { color: #65718a; font-size: .68rem; }
#auth-panel .auth-copy { color: #4b5668; font-size: .82rem; line-height: 1.5; }
#auth-panel .env-chip-row { margin: 0 0 12px; }
#auth-panel .env-chip-row:has([hidden]) { display: none; }
#auth-panel .auth-legal-copy { margin: 24px 0 12px; color: #758093; font-size: .73rem; text-align: center; line-height: 1.6; }
#auth-panel .auth-legal-copy a { color: #4b5668; text-underline-offset: 3px; }
#auth-panel .auth-status { margin: 12px 0; color: #334155; font-size: .84rem; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }
#auth-panel .auth-status:empty { display: none; }
#auth-panel .login-text-button { width: 100%; min-height: 44px; border: 0; background: transparent; color: #245ddb; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
#auth-panel .login-switch { width: calc(100% + 64px); min-height: 72px; margin: 12px -32px 0; padding: 18px; border: 0; border-top: 1px solid #eef0f3; background: #fff; color: #d22247; font: 750 .86rem/1.5 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
#auth-panel .login-back { justify-self: start; min-height: 36px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 999px; color: #334155; background: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
#auth-panel .password-field { position: relative; }
#auth-panel .password-field input { padding-right: 64px; }
#auth-panel .password-toggle { color: #245ddb; background: transparent; border: 0; }
#auth-panel .auth-field-help { margin: 0 0 8px; font-size: .75rem; color: #65718a; }
#auth-panel :is(.login-qr-panel,.login-approval-panel) { display: grid; gap: 12px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f8fafc; text-align: center; }
#auth-panel .login-approval-panel { margin-bottom: 18px; }
#auth-panel :is(.login-qr-panel,.login-approval-panel) p { color: #4b5668; font-size: .8rem; line-height: 1.5; margin: 0; }
#auth-panel .login-qr-code { background: #fff; border-radius: 12px; padding: 8px; }
#auth-panel .login-qr-code svg { display: block; width: 100%; height: auto; }
#auth-panel .login-verification-number { color: #111827; font: 800 1.3rem/1.4 ui-monospace, monospace; letter-spacing: .22em; }
#auth-panel .login-qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#auth-panel .login-qr-actions button { min-height: 42px; border: 1px solid #dbe0e8; border-radius: 8px; background: #fff; color: #245ddb; cursor: pointer; }
html.employee-invite-mode #auth-panel { grid-template-columns: minmax(0, 480px); justify-content: center; }
@media (max-width: 900px) {
  #auth-panel { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding-top: 20px; }
  #auth-panel .auth-story { min-height: 260px; padding: 32px; }
  #auth-panel .auth-story h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  #auth-panel .auth-story .lead { font-size: .96rem; }
  #auth-panel .auth-story-head { gap: 16px; }
}
@media (max-width: 480px) {
  #auth-panel .auth-story { display: none; }
  #auth-panel .auth-story-head .eyebrow, #auth-panel .login-story-link { display: none; }
  #auth-panel .login-switch { width: calc(100% + 48px); margin-inline: -24px; }
}
