/* KINGS GPS TRACKING - PREMIUM LOGIN */

/* Solo aplica en login */
body:has(input[type="password"]) {
    background: #050505 !important;
}

/* Fondo premium izquierdo / superior */
body:has(input[type="password"])::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 360px;
    height: 100vh;
    background: linear-gradient(180deg, #050505 0%, #220000 60%, #000000 100%);
    z-index: 999999;
}

/* Logo */
body:has(input[type="password"])::after {
    content: "";
    position: fixed;
    left: 50px;
    top: 220px;
    width: 250px;
    height: 250px;
    background: url("/logo.png") no-repeat center;
    background-size: contain;
    z-index: 1000000;
}

/* Nombre */
body:has(input[type="password"]) #root::before {
    content: "Kings GPS Tracking";
    position: fixed;
    left: 40px;
    top: 95px;
    width: 280px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    z-index: 1000001;
    text-align: center;
}

/* Powered */
body:has(input[type="password"]) #root::after {
    content: "Powered by Kings Multiservices BV";
    position: fixed;
    left: 50px;
    bottom: 60px;
    width: 260px;
    color: #facc15;
    font-size: 13px;
    font-family: Arial, sans-serif;
    z-index: 1000001;
    text-align: center;
}

/* Botón login rojo */
body:has(input[type="password"]) button {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

/* Ocultar REGISTER */
body:has(input[type="password"]) a {
    visibility: hidden !important;
}

/* MÓVIL PREMIUM */
@media (max-width: 768px) {
    body:has(input[type="password"]) {
        background: linear-gradient(180deg, #050505 0%, #180000 45%, #ffffff 45%, #ffffff 100%) !important;
    }

    body:has(input[type="password"])::before {
        width: 100vw;
        height: 340px;
        background: linear-gradient(180deg, #050505 0%, #220000 100%);
    }

    body:has(input[type="password"])::after {
        left: 50%;
        top: 95px;
        transform: translateX(-50%);
        width: 170px;
        height: 170px;
    }

    body:has(input[type="password"]) #root::before {
        left: 0;
        top: 28px;
        width: 100vw;
        font-size: 24px;
        color: #ffffff;
    }

    body:has(input[type="password"]) #root::after {
        left: 0;
        bottom: 18px;
        width: 100vw;
        color: #777777;
        font-size: 12px;
    }

    #root {
        min-height: 100vh !important;
    }
}

/* Ajuste final móvil: dejar visible el correo */
@media (max-width: 768px) {
    body:has(input[type="password"])::before {
        height: 280px !important;
    }

    body:has(input[type="password"])::after {
        top: 92px !important;
        width: 135px !important;
        height: 135px !important;
    }

    body:has(input[type="password"]) #root::before {
        top: 28px !important;
        font-size: 22px !important;
    }

    body:has(input[type="password"]) form,
    body:has(input[type="password"]) .MuiBox-root {
        margin-top: 40px !important;
    }
}


/* 🔥 OCULTAR SOLO LOGO + TEXTO TRACCAR */
body:has(input[type="password"]) svg,
body:has(input[type="password"]) h5,
body:has(input[type="password"]) h6 {
    display: none !important;
}



body:has(input[type="password"]) form {
    margin-top: 40px !important;
}
