/* ==============================
   Login
================================ */
    :root {
        --login-primary: #2563eb;
        --login-secondary: #4f8df7;
        --login-dark: #123a82;
        --login-text: #1e293b;
        --login-muted: #718096;
        --login-border: #dbe4f0;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        min-height: 100%;
        margin: 0;
    }

    body.login-page {
        min-height: 100vh;
        font-family: Arial, sans-serif;
        background:
            radial-gradient(
                circle at 15% 20%,
                rgba(79, 141, 247, 0.18),
                transparent 30%
            ),
            radial-gradient(
                circle at 85% 80%,
                rgba(37, 99, 235, 0.14),
                transparent 32%
            ),
            linear-gradient(
                135deg,
                #eef4ff 0%,
                #f8fbff 50%,
                #edf3fc 100%
            );
    }

    /* Contenedor general */

    #divLogin {
        min-height: 100vh;
        margin: 0;
        padding: 35px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-wrapper {
        width: 100%;
        max-width: 900px;
    }

    /* Tarjeta completa */

    .login-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 520px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid rgba(214, 225, 240, 0.85);
        border-radius: 26px;
        box-shadow: 0 25px 65px rgba(31, 64, 120, 0.2);
    }

    /* Lado izquierdo */

    .login-brand {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 55px 48px;
        color: #ffffff;
        background:
            radial-gradient(
                circle at 80% 15%,
                rgba(255, 255, 255, 0.18),
                transparent 30%
            ),
            linear-gradient(
                145deg,
                #1049b7 0%,
                #2563eb 50%,
                #4f8df7 100%
            );
        overflow: hidden;
    }

    .login-brand::before,
    .login-brand::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
    }

    .login-brand::before {
        right: -90px;
        bottom: -90px;
        width: 260px;
        height: 260px;
    }

    .login-brand::after {
        right: -30px;
        bottom: -30px;
        width: 150px;
        height: 150px;
    }

    .login-logo-container {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 32px;
        padding: 14px 20px;
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(0, 34, 98, 0.25);
    }

    .login-logo {
        display: block;
        width: 180px;
        height: auto;
        max-height: 90px;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain;
        border: none !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    .login-system-label {
        position: relative;
        z-index: 2;
        display: inline-block;
        margin-bottom: 13px;
        padding: 7px 12px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 20px;
    }

    .login-brand h1 {
        position: relative;
        z-index: 2;
        margin: 0;
        color: #ffffff;
        font-size: 33px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        text-shadow: none;
    }

    .login-brand p {
        position: relative;
        z-index: 2;
        max-width: 330px;
        margin: 18px 0 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 14px;
        line-height: 1.6;
    }

    /* Lado derecho */

    .login-form-area {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 50px 48px;
        background: #ffffff;
    }

    .login-form-header {
        margin-bottom: 29px;
    }

    .login-form-header .welcome-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-bottom: 17px;
        color: #ffffff;
        font-size: 19px;
        background: linear-gradient(
            135deg,
            var(--login-primary),
            var(--login-secondary)
        );
        border-radius: 14px;
        box-shadow: 0 9px 20px rgba(37, 99, 235, 0.24);
    }

    .login-form-header h2 {
        margin: 0 0 7px;
        color: var(--login-text);
        font-size: 29px;
        font-weight: 800;
    }

    .login-form-header p {
        margin: 0;
        color: var(--login-muted);
        font-size: 14px;
    }

    /* Evita iconos creados por CSS anterior */

    #form-login .login-field::before,
    #form-login .login-field::after,
    #user-group::before,
    #user-group::after,
    #password-group::before,
    #password-group::after {
        display: none !important;
        content: none !important;
    }

    /* Campos */

    #form-login .login-field {
        position: relative;
        width: 100%;
        margin-bottom: 17px;
    }

    #form-login .field-icon {
        position: absolute;
        top: 50%;
        left: 17px;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        color: #8492a8;
        font-size: 16px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    #form-login .login-control {
        display: block;
        width: 100% !important;
        height: 54px !important;
        margin: 0 !important;
        padding: 10px 48px !important;
        color: var(--login-text) !important;
        font-family: Arial, sans-serif !important;
        font-size: 15px !important;
        background: #f8faff !important;
        border: 1px solid var(--login-border) !important;
        border-radius: 13px !important;
        outline: none !important;
        box-shadow: none !important;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    }

    #form-login .login-control::placeholder {
        color: #9ba7b8;
    }

    #form-login .login-control:focus {
        background: #ffffff !important;
        border-color: var(--login-primary) !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11) !important;
    }

    #form-login .login-field:focus-within .field-icon {
        color: var(--login-primary);
    }

    /* Mostrar contraseña */

    #form-login .toggle-password {
        position: absolute !important;
        top: 50% !important;
        right: 14px !important;
        left: auto !important;
        z-index: 7;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        color: #7f8da3;
        background: transparent;
        border: none;
        border-radius: 9px;
        cursor: pointer;
        transform: translateY(-50%) !important;
        transition:
            color 0.2s ease,
            background-color 0.2s ease;
    }

    #form-login .toggle-password:hover {
        color: var(--login-primary);
        background: #eaf1ff;
    }

    /* Botón */

    #btnIngresar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100% !important;
        height: 54px;
        margin-top: 5px;
        padding: 0 20px;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
        background: linear-gradient(
            120deg,
            var(--login-primary),
            var(--login-secondary)
        ) !important;
        border: none !important;
        border-radius: 13px !important;
        box-shadow: 0 11px 24px rgba(37, 99, 235, 0.28) !important;
        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            filter 0.2s ease;
    }

    #btnIngresar:hover {
        color: #ffffff !important;
        filter: brightness(1.05);
        transform: translateY(-2px);
        box-shadow: 0 15px 28px rgba(37, 99, 235, 0.35) !important;
    }

    #btnIngresar:active {
        transform: translateY(0);
    }

    .login-footer {
        margin: 25px 0 0;
        color: #98a4b5;
        font-size: 12px;
        text-align: center;
    }

    /* Tablets y celulares */

    @media (max-width: 767.98px) {
        #divLogin {
            padding: 22px 14px;
        }

        .login-wrapper {
            max-width: 450px;
        }

        .login-box {
            display: block;
            min-height: auto;
            border-radius: 21px;
        }

        .login-brand {
            align-items: center;
            padding: 32px 25px;
            text-align: center;
        }

        .login-logo-container {
            margin-bottom: 20px;
            padding: 10px 16px;
        }

        .login-logo {
            width: 145px;
            max-height: 70px;
        }

        .login-system-label {
            display: none;
        }

        .login-brand h1 {
            max-width: 350px;
            font-size: 24px;
            text-align: center;
        }

        .login-brand p {
            display: none;
        }

        .login-form-area {
            padding: 34px 25px 30px;
        }

        .login-form-header {
            margin-bottom: 24px;
            text-align: center;
        }

        .login-form-header .welcome-icon {
            margin-bottom: 13px;
        }

        .login-form-header h2 {
            font-size: 25px;
        }
    }

    @media (max-width: 400px) {
        .login-brand {
            padding: 27px 18px;
        }

        .login-form-area {
            padding: 30px 18px 25px;
        }

        .login-brand h1 {
            font-size: 21px;
        }
    }

/* ==============================
   BARRA DE NAVEGACIÓN GPON
================================ */

.nav-gpon {
    min-height: 92px;
    padding: 10px 0;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.18),
            transparent 25%
        ),
        linear-gradient(
            115deg,
            #1261e8 0%,
            #3479f6 45%,
            #1955d1 100%
        );
    box-shadow: 0 8px 25px rgba(17, 67, 153, 0.25);
    z-index: 1030;
}

/* Logo */

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    height: 76px;
    margin-right: 24px;
    padding: 7px 14px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.14),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.logo-gpon {
    width: 112px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

/* Separación del menú */

.menu-principal {
    gap: 7px;
}

/* Enlaces generales */

.nav-gpon .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px;
    padding: 11px 15px !important;
    color: rgba(255, 255, 255, 0.91) !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 13px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-gpon .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Opción activa */

.nav-gpon .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 6px 15px rgba(0, 38, 110, 0.18);
}

.nav-gpon .nav-link.active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 5px;
    left: 18px;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
}

/* Contenedor de los iconos */

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    font-size: 14px;
}

/* Menú desplegable */

.dropdown-menu-gpon {
    min-width: 280px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(23, 52, 102, 0.22);
}

.dropdown-menu-gpon::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 32px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
}

.dropdown-menu-gpon .dropdown-header {
    padding: 7px 12px 10px;
    color: #8b98ad;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dropdown-menu-gpon .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: #263850;
    border-radius: 11px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dropdown-menu-gpon .dropdown-item:hover {
    color: #1459d9;
    background: #edf4ff;
    transform: translateX(3px);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #3479f6, #1452c7);
    border-radius: 11px;
    box-shadow: 0 5px 12px rgba(31, 103, 225, 0.25);
}

.dropdown-menu-gpon .dropdown-item span:last-child {
    display: flex;
    flex-direction: column;
}

.dropdown-menu-gpon .dropdown-item strong {
    font-size: 14px;
    line-height: 18px;
}

.dropdown-menu-gpon .dropdown-item small {
    margin-top: 2px;
    color: #8491a5;
    font-size: 11px;
}

/* Cerrar sesión */

.nav-gpon .cerrar-sesion {
    padding-right: 18px !important;
    padding-left: 18px !important;
    background: rgba(10, 35, 92, 0.19);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-gpon .cerrar-sesion:hover {
    background: #ffffff;
    color: #d63b4a !important;
    box-shadow: 0 8px 20px rgba(16, 41, 96, 0.2);
}

.nav-gpon .cerrar-sesion:hover .menu-icon {
    color: #ffffff;
    background: #d63b4a;
}

/* Botón móvil */

.custom-toggler {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 11px;
    outline: none !important;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* ==============================
   DISEÑO RESPONSIVO
================================ */

@media (max-width: 991.98px) {

    .nav-gpon {
        min-height: auto;
        padding: 9px 12px;
    }

    .brand-logo {
        min-width: 100px;
        height: 64px;
        margin-right: 0;
        border-radius: 18px;
    }

    .logo-gpon {
        width: 93px;
        max-height: 52px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 13px;
        background: rgba(11, 55, 149, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 17px;
        backdrop-filter: blur(12px);
    }

    .menu-principal {
        gap: 3px;
    }

    .nav-gpon .nav-link {
        margin: 3px 0;
    }

    .nav-gpon .nav-link:hover {
        transform: translateX(3px);
    }

    .dropdown-menu-gpon {
        margin: 4px 0 8px;
    }

    .dropdown-menu-gpon::before {
        display: none;
    }

    .nav-gpon .cerrar-sesion {
        margin-top: 8px;
    }
}


/* ==============================
   Titulos
================================ */

.titulo-seccion {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 25px 0 18px;
    padding: 13px 20px;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;

    background: linear-gradient(
        120deg,
        #1261e8 0%,
        #397df4 55%,
        #1955d1 100%
    );

    border: none;
    border-radius: 12px;

    box-shadow: 0 7px 18px rgba(23, 87, 190, 0.22);
}

/* Cuadro del icono */
.titulo-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    color: #1762dc;
    background: #ffffff;

    border-radius: 11px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.13);
}

/* Pequeño efecto decorativo */
.titulo-seccion::after {
    content: "";
    width: 45px;
    height: 4px;
    margin-left: auto;

    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
}

/* Celulares */
@media (max-width: 576px) {
    .titulo-seccion {
        padding: 11px 14px;
        font-size: 20px;
        border-radius: 10px;
    }

    .titulo-icono {
        width: 36px;
        height: 36px;
    }
}