/* Ekran za povezivanje + MDT preko cijelog prozora (telefon, tablet, računalo). */
body.remote {
    background: #111214;
    user-select: auto;
}
body.remote input, body.remote textarea { user-select: text; }

#gate {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    overflow: auto;
    background:
        radial-gradient(ellipse at center, rgba(8, 10, 14, .28), rgba(8, 10, 14, .62)),
        url("mdt/gate-bg.jpg") center / cover no-repeat;
    background-color: #0c1016;
}
.gate-card {
    width: min(460px, 100%);
    background: #f5f5f3;
    color: #111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.gate-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #111214;
    color: #fff;
    border-bottom: 4px solid #f2c200;
}
.gate-brand img { width: 44px; height: 44px; object-fit: contain; }
.gate-brand b {
    display: block;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1;
}
.gate-brand span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8b8d93;
}
.gate-body { padding: 22px 22px 18px; }
.gate-kicker { margin: 0; color: #1f5fd6; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.gate-card h1 {
    margin: 8px 0 0;
    font-size: 34px;
    line-height: 0.95;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -.02em;
}
.gate-lead { margin: 12px 0 0; color: #5c5c5c; font-size: 14px; font-weight: 700; line-height: 1.45; }
.gate-card ol { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gate-card li { display: flex; gap: 10px; align-items: flex-start; color: #111; font-size: 14px; font-weight: 700; line-height: 1.4; }
.gate-card li span {
    flex: 0 0 22px; height: 22px; display: grid; place-items: center;
    background: #111; color: #f2c200; font-size: 12px; font-weight: 900; font-style: italic;
}
.gate-card li p { margin: 1px 0 0; }
#gateForm { margin-top: 20px; }
#gateForm label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #767676;
}
.gate-form { display: flex; gap: 8px; }
.gate-form input {
    flex: 1; min-width: 0; height: 48px; border: 1px solid rgba(0, 0, 0, .18);
    background: #fff; color: #111; padding: 0 12px; font-size: 18px; font-weight: 900;
    letter-spacing: .18em; text-transform: uppercase; outline: none;
}
.gate-form input::placeholder { color: #b0b0aa; letter-spacing: .16em; font-weight: 900; }
.gate-form input:focus { border-color: #1f5fd6; }
.gate-form button {
    height: 48px; border: 0; padding: 0 18px; background: #1f5fd6; color: #fff;
    font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap; cursor: pointer;
}
.gate-form button:hover { background: #184eaf; }
.gate-form button:disabled { opacity: .55; cursor: default; }
.gate-err:empty { display: none; }
.gate-err { margin: 12px 0 0; padding: 10px 12px; background: #fff; border-left: 3px solid #1f5fd6; color: #111; font-size: 13px; font-weight: 700; line-height: 1.4; }
.gate-err.bad { border-left-color: #d6332a; color: #9d241e; background: #fdeceb; }
.gate-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .12); color: #767676; font-size: 12px; font-weight: 700; line-height: 1.45; }

body.remote #tablet { background: transparent; }
body.remote .device {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: none;
}
body.remote .bump,
body.remote .screw,
body.remote .bezel-top,
body.remote .bezel-bot,
body.remote .hw { display: none; }
body.remote .screen { height: 100%; border-radius: 0; box-shadow: none; }
body.remote .screen::after { display: none; }

@media (max-width: 800px) {
    .gate-card h1 { font-size: 28px; }
    .gate-form { flex-direction: column; }
    .gate-form button { width: 100%; }
    body.remote .body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    body.remote .rail { max-height: 40vh; overflow: auto; }
    body.remote #nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
    body.remote #nav .ns { display: none; }
    body.remote #nav button { width: auto; padding: 8px 10px; }
    body.remote .top { padding: 10px 12px; gap: 10px; }
    body.remote .ttl h1 { font-size: 18px; }
    body.remote #toasts { left: 12px; right: 12px; width: auto; }
}
