/* ==========================================================================
   VIGIA DASHBOARD V2 - LOGIN PREMIUM CSS (UPDATED & RESPONSIVE)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0B1120;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Estructura Layout Principal */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   PANEL IZQUIERDO (TEXTOS Y FEATURES)
   ========================================================================== */
.left-panel {
    width: 55%;
    position: relative;
    background: linear-gradient(135deg, #0B1120, #111827, #1E293B);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    transition: all 0.3s ease;
}

.content {
    width: 100%;
    max-width: 500px;
    z-index: 2;
}

.content h1 {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content p {
    color: #94A3B8;
    line-height: 1.8;
}

.features {
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   PANEL DERECHO (FORMULARIO DE ACCESO)
   ========================================================================== */
.right-panel {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0F172A;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.login-card {
    width: 100%;
    max-width: 420px; /* Cambiado a max-width para flexibilidad */
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(0, 229, 168, .1);
}

.login-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-card p {
    color: #94A3B8;
    margin-bottom: 25px;
}

/* Componentes del Formulario */
.form-control {
    width: 100%;
    background: #1E293B;
    border: 1px solid transparent; /* Añadido borde base para transiciones suaves */
    color: white;
    padding: 12px;
    border-radius: 10px; /* Asegura un radio estético acorde al diseño */
    outline: none;
    transition: all 0.25s ease;
}




.btn-login {
    width: 100%;
    background: #00E5A8;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-login:hover {
    background: #00C894;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}



/* ==========================================================================
   SISTEMA DE ADAPTACIÓN (RESPONSIVE MEDIA QUERIES)
   ========================================================================== */

/* Laptops y pantallas medianas */
@media(max-width: 1200px) {
    .content h1 {
        font-size: 52px;
    }
    .content h2 {
        font-size: 32px;
    }
    .left-panel {
        padding: 40px;
    }
}

/* Modo Tablet (Transición a una sola columna) */
@media(max-width: 992px) {
    .login-container {
        flex-direction: column; /* Apila los paneles verticalmente */
    }

    .left-panel {
        width: 100%;
        min-height: auto;
        padding: 60px 40px 40px 40px;
        text-align: center;
    }

    .content {
        max-width: 600px;
    }

    .content h1 {
        font-size: 46px;
    }

    .content h2 {
        font-size: 28px;
    }

    .features {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Distribuye los features en pares para ahorrar espacio vertical */
        gap: 15px;
        margin-top: 30px;
    }

    .feature {
        margin-bottom: 0;
        text-align: left;
    }

    .right-panel {
        width: 100%;
        flex: 1; /* Toma el espacio restante */
        padding: 40px;
    }
}

/* Pantallas Móviles (Smartphones) */
@media(max-width: 768px) {
    /* OPCIÓN PREMIUM PARA MÓVIL: Ocultamos los textos decorativos y features 
       para que el usuario acceda directamente al login sin hacer scroll eterno. */
    .left-panel {
        display: none; 
    }

    .right-panel {
        min-height: 100vh;
        background: #0B1120; /* Sincroniza el fondo general */
        padding: 20px;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .02); /* Suaviza el panel en pantallas pequeñas */
    }

    .login-card h3 {
        font-size: 26px;
    }
}

/* Smartphones pequeños */
@media(max-width: 400px) {
    .login-card {
        padding: 25px 15px;
    }
    
    .login-card h3 {
        font-size: 24px;
    }
}


