.login-page {
    min-height: 100vh;
    margin: 0;
    background: #0b1220;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
}

.login-brand {
    background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 55%, #064e3b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-brand-inner { max-width: 22rem; }

.login-logo {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.login-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.login-brand p {
    opacity: 0.85;
    margin: 0.35rem 0 1.5rem;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    padding: 0.35rem 0;
    opacity: 0.9;
}

.login-features i { color: #4ade80; margin-right: 0.35rem; }

.login-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.login-sub {
    color: #64748b;
    margin: 0.25rem 0 1.25rem;
}

.login-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.device-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.device-banner > i { font-size: 1.5rem; flex-shrink: 0; }

.device-banner-title { font-weight: 700; font-size: 0.9rem; }

.device-banner--ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.device-banner--ok i { color: #059669; }

.device-banner--warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.device-banner--warn i { color: #d97706; }

.device-banner--unknown { background: #f8fafc; color: #475569; }

.login-form--locked .form-control,
.login-form--locked .btn-login {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-dest {
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

.login-dest legend {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    float: none;
    width: auto;
}

.login-dest-btns {
    display: grid;
    /* One equal column per visible option (Admin Panel is hidden on a Sales-only PC). */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.65rem;
}

/* Price Checker — not ready yet: shown, but only says "Coming soon". */
button.login-dest-soon {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
}
.login-dest-soon span {
    position: relative;
    border-style: dashed !important;
    color: #64748b;
}
/* "Coming soon" as a corner badge, so all three buttons keep the same height. */
.login-dest-soon small {
    position: absolute;
    top: -0.6rem;
    right: 0.4rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 999px;
    line-height: 1.1rem;
}

.login-dest-opt {
    display: block;
    margin: 0;
    cursor: pointer;
}

.login-dest-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-dest-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #475569;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.login-dest-opt input:checked + span {
    border-color: #16a34a;
    background: #ecfdf5;
    color: #065f46;
}

.login-dest-opt input:focus-visible + span {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

fieldset.login-dest:disabled .login-dest-opt {
    cursor: not-allowed;
    opacity: 0.55;
}

.device-reg-link { margin-left: auto; flex-shrink: 0; }

.btn-login {
    background: linear-gradient(90deg, #16a34a, #15803d);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem;
}

.btn-login:hover {
    background: linear-gradient(90deg, #15803d, #166534);
    color: #fff;
}

.login-foot a { font-weight: 600; }

/* Sales panel shell — opened, opened from login without page navigation */
html.login-sales-fs,
body.login-sales-fs {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.login-sales-shell {
    position: fixed;
    inset: 0;
    background: #000;
}

#loginSalesFrame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
