/*
 * Sign-in pages for every portal (login/, dashboard/login/, server/login/, kiosk/login.html, display/login.html).
 * Leap theme (home/css/leap-flexiqueue.min.css) for type and layout; this file adds the brand panel and restyles FirebaseUI.
 */

:root { --fq-teal: #22847a; --fq-teal-bright: #2a9d8f; --fq-ink: #2f3a4a; --fq-muted: #6b7780; --fq-line: #e3e7ea; --fq-amber: #e9b44c; }
html, body { height: 100%; }
body { background: #f5f7f8; color: #4f5b63; }

.fq-login { min-height: 100vh; display: flex; }
.fq-login-brand { flex: 1 1 50%; position: relative; overflow: hidden; background: var(--fq-ink); color: #c9d3d9; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.fq-login-brand img.fq-logo { height: 38px; width: auto; align-self: flex-start; }
.fq-login-brand h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.fq-login-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.fq-login-points li { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; font-weight: 600; color: #e3e9ec; }
.fq-login-points .ph-duotone { font-size: 1.35rem; color: #9fd9cf; }
.fq-login-brand small { color: #8a96a0; }

/* A small live board that keeps calling tokens */
.fq-ticker { position: relative; z-index: 1; max-width: 360px; margin: 2.5rem 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 1.1rem 1.25rem; }
.fq-ticker-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fd9cf; }
.fq-ticker-row { display: flex; align-items: center; gap: .9rem; margin-top: .3rem; }
.fq-ticker-token { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; }
.fq-ticker-arrow { color: var(--fq-amber); font-size: 1.6rem; }
.fq-ticker-counter { font-size: 1.15rem; font-weight: 700; color: #fff; }
.fq-ticker.is-calling .fq-ticker-token, .fq-ticker.is-calling .fq-ticker-counter { animation: fqTick .6s ease-out; }
@keyframes fqTick { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fq-ticker-next { display: flex; gap: .4rem; margin-top: .9rem; }
.fq-ticker-next span { padding: .25rem .6rem; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #e3e9ec; font-weight: 700; font-size: .85rem; transition: transform .4s ease; }
.fq-login-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; animation: fqGlow 12s ease-in-out infinite alternate; }
.fq-login-glow.g1 { width: 380px; height: 380px; background: var(--fq-teal-bright); right: -120px; top: -100px; }
.fq-login-glow.g2 { width: 300px; height: 300px; background: #e07a8f; left: -120px; bottom: -120px; animation-delay: -5s; }
@keyframes fqGlow { to { transform: translate(-40px, 40px) scale(1.1); } }

.fq-login-main { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.fq-login-card { width: 100%; max-width: 420px; animation: fqRise .6s ease-out both; }
@keyframes fqRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fq-login-card .fq-logo-sm { height: 34px; margin-bottom: 1.5rem; display: none; }
.fq-login-card h1 { font-size: 2rem; font-weight: 800; color: var(--fq-ink); letter-spacing: -.02em; margin-bottom: .4rem; }
.fq-login-card .lead { font-size: 1.05rem; color: var(--fq-muted); margin-bottom: 1.75rem; }
.fq-login-box { background: #fff; border: 1px solid var(--fq-line); border-radius: 20px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(47, 58, 74, .08); }
.fq-login-wait { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--fq-muted); font-weight: 600; padding: 1rem 0; }
.fq-login-wait .spinner-border { width: 1.2rem; height: 1.2rem; border-width: .15em; color: var(--fq-teal); }
.fq-login-help { font-size: .88rem; color: var(--fq-muted); margin-top: 1.25rem; }
.fq-login-help a { font-weight: 600; }
.fq-login-foot { margin-top: 2rem; font-size: .82rem; color: #8a96a0; }
.fq-login-foot a { color: var(--fq-muted); }

/* FirebaseUI: full-width Leap-style buttons */
#firebaseui-auth-container .firebaseui-container { max-width: none; box-shadow: none; background: transparent; font-family: inherit; }
#firebaseui-auth-container .firebaseui-card-content { padding: 0; }
#firebaseui-auth-container .firebaseui-idp-list { margin: 0; }
#firebaseui-auth-container .firebaseui-list-item { margin-bottom: .75rem; }
#firebaseui-auth-container .firebaseui-list-item:last-child { margin-bottom: 0; }
#firebaseui-auth-container .firebaseui-idp-button { max-width: none; width: 100%; min-height: 52px; border-radius: 12px; box-shadow: none; border: 1px solid var(--fq-line); padding: 0 1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
#firebaseui-auth-container .firebaseui-idp-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 58, 74, .1); }
#firebaseui-auth-container .firebaseui-idp-google { border-color: var(--fq-line); }
#firebaseui-auth-container .firebaseui-idp-google > .firebaseui-idp-text { color: var(--fq-ink); }
#firebaseui-auth-container .firebaseui-idp-text { font-family: inherit; font-size: 1rem; font-weight: 700; padding-left: 0; }
#firebaseui-auth-container .firebaseui-idp-icon-wrapper { display: inline-flex; }
#firebaseui-auth-container .firebaseui-card-footer, #firebaseui-auth-container .firebaseui-tos { font-family: inherit; font-size: .78rem; color: var(--fq-muted); margin-top: 1rem; }
#firebaseui-auth-container .firebaseui-tos-list { text-align: center; }
#firebaseui-auth-container a.firebaseui-link { color: var(--fq-teal); }

@media (max-width: 991.98px) {
    .fq-login-brand { display: none; }
    .fq-login-card .fq-logo-sm { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pairing a kiosk, display or operator device with a code */
.fq-pair-box { margin-bottom: 1rem; }
.fq-pair-label { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--fq-ink); margin-bottom: .6rem; }
.fq-pair-label .ph-duotone { color: var(--fq-teal); font-size: 1.2rem; }
.fq-pair-row { display: flex; gap: .5rem; }
.fq-pair-input { flex: 1 1 auto; min-width: 0; height: 52px; border-radius: 12px; font-size: 1.4rem; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.fq-pair-btn { flex-shrink: 0; min-width: 96px; border-radius: 12px; font-weight: 700; }
.fq-pair-msg { margin-top: .6rem; font-size: .85rem; color: var(--fq-muted); }
.fq-pair-msg.is-error { color: #b54848; font-weight: 600; }
.fq-or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--fq-muted); font-size: .82rem; }
.fq-or::before, .fq-or::after { content: ""; flex: 1; height: 1px; background: var(--fq-line); }
