/* Přihlášení (povinné), přihlášení QR kódem a Moje zařízení – 2.41 */
#login-screen { width: 100% !important; min-height: 100%; display: grid; place-items: start center; padding-top: max(4vh, 16px); }
#login-screen .login-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 12px; }
#login-screen h1 { margin: 2px 0 0; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #0d1624; border: 1px solid #223449; }
.login-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: #94a3b8; font-weight: 650; font-size: .88rem; cursor: pointer; }
.login-tabs button.active { background: linear-gradient(180deg, #1d3c47, #142a34); color: #5eead4; box-shadow: inset 0 0 0 1px #2dd4bf66; }
#login-form { display: flex; flex-direction: column; gap: 6px; }
#login-status.is-error { color: #fca5a5; }
.login-switch { background: none !important; border-color: transparent !important; color: #5eead4 !important; }
.login-recovery { font-size: .86rem; }
.login-note { margin: 0; font-size: .8rem; }
.login-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pair-qr { width: min(280px, 78vw); aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: #0d1624; border: 1px solid #223449; position: relative; }
.pair-qr svg { width: 100%; height: 100%; display: block; }
.pair-qr.expired svg { opacity: .18; filter: blur(2px); }
.pair-qr:empty::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2dd4bf33; border-top-color: #2dd4bf; animation: pair-spin .9s linear infinite; }
@keyframes pair-spin { to { transform: rotate(360deg); } }

.devices-root { margin-top: 14px; }
.devices-card h2 { margin-top: 0; }
.devices-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.devices-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 13px; background: #0d1624; border: 1px solid #223449; }
.devices-item.is-pro { border-color: rgba(45, 212, 191, .35); }
.devices-item.is-current { box-shadow: inset 3px 0 0 #2dd4bf; }
.devices-icon { font-size: 1.35rem; width: 30px; text-align: center; flex: none; }
.devices-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.devices-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devices-text span { font-size: .8rem; }
.devices-actions { display: flex; gap: 6px; flex: none; }
.devices-actions button { min-height: 36px; padding: 6px 12px; font-size: .82rem; }
.devices-move { margin-top: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.devices-move p { margin: 0; color: #fde68a; }
.devices-msg { margin: 10px 0 0; color: #fde68a; }

.pair-dialog { width: min(440px, calc(100vw - 24px)); }
.pair-dialog .pair-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #05080c; display: block; margin: 8px 0; }
.pair-dialog .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }

/* Bez přihlášení není kam jít: schovat navigaci a akce hlavičky. */
body[data-active-screen="login"] .app-nav,
body[data-active-screen="login"] .header-actions,
body[data-active-screen="login"] .workspace-back,
body[data-active-screen="login"] .project-status,
body[data-active-screen="login"] .pc-menu,
body[data-active-screen="login"] .pc-menubar { display: none !important; }
html.pc body[data-active-screen="login"] #app { grid-template-columns: 1fr !important; }
html.pc body[data-active-screen="login"] main, body[data-active-screen="login"] #login-screen { margin-left: 0 !important; }
.pro-elsewhere { margin-top: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pro-elsewhere p { margin: 0; color: #fde68a; }
