/* 1. SOLO AFECTAR LA PÁGINA DE LOGIN */
body:has(form) {
    background-color: #0b0e14 !important;
}

/* 2. UNIFICAR PANTALLA Y ELIMINAR COLUMNAS EN LOGIN */
body:has(form) #root > div > div {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    width: 100vw !important;
    background-image: none !important;
}

body:has(form) .MuiGrid-container > .MuiGrid-item:first-of-type {
    display: none !important;
}

body:has(form) .MuiGrid-container > .MuiGrid-item:last-of-type {
    max-width: 100% !important;
    flex-basis: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
}

/* 3. DISEÑO DEL FORMULARIO Y LOGO AGUAITA */
body:has(form) .MuiPaper-root {
    background-color: #161b22 !important;
    border-radius: 20px !important;
    padding: 40px !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.7) !important;
    border: 1px solid #30363d !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

body:has(form) .MuiPaper-root::before {
    content: "";
    display: block;
    width: 200px;
    height: 120px;
    margin-bottom: 20px;
    background-image: url('/logo.svg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body:has(form) .MuiPaper-root img {
    display: none !important;
}

/* 4. ESTILOS DE BOTONES E INPUTS (CORRECCIÓN COLOR AZUL) */
body:has(form) .MuiButton-contained {
    background-color: #238636 !important; 
    font-weight: bold !important;
    text-transform: none !important;
    margin-top: 20px !important;
}

/* Forzar color azul al escribir y fondo oscuro para evitar el blanco de la App */
body:has(form) .MuiInputBase-root {
    background-color: #0d1117 !important; /* Mantiene el fondo oscuro en el input */
}

body:has(form) .MuiInputBase-input {
    color: #27BEF5 !important; /* Azul claro al escribir */
    -webkit-text-fill-color: #27BEF5 !important; /* Necesario para navegadores móviles */
}

/* Color de la etiqueta (Email/Contraseña) para que no se pierda */
body:has(form) .MuiInputLabel-root {
    color: #8b949e !important;
}

/* 5. PROTECCIÓN DEL MAPA */
#map, .MuiDrawer-root, .css-10n7asv {
    display: flex !important;
}
